Fix the model fetching
This commit is contained in:
parent
5cab401189
commit
a1e99aa0d3
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
|
@ -1244,7 +1244,7 @@ get_distro() {
|
||||||
get_model() {
|
get_model() {
|
||||||
case $os in
|
case $os in
|
||||||
Linux)
|
Linux)
|
||||||
if [[ -d /usr/bin/system-image-cli || -d /system/app/ ]]; then
|
if [[ -d /android/system/ || -d /system/app/ ]]; then
|
||||||
model="$(getprop ro.product.brand) $(getprop ro.product.model)"
|
model="$(getprop ro.product.brand) $(getprop ro.product.model)"
|
||||||
|
|
||||||
elif [[ -f /sys/devices/virtual/dmi/id/board_vendor ||
|
elif [[ -f /sys/devices/virtual/dmi/id/board_vendor ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue