mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Model: Small fix
This commit is contained in:
4
neofetch
4
neofetch
@@ -45,8 +45,8 @@ get_model() {
|
|||||||
if [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
if [[ -d "/system/app/" && -d "/system/priv-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/product_name ]] ||\
|
elif [[ -f /sys/devices/virtual/dmi/id/product_name ||
|
||||||
[[ -f /sys/devices/virtual/dmi/id/product_version ]]; then
|
-f /sys/devices/virtual/dmi/id/product_version ]]; then
|
||||||
model="$(< /sys/devices/virtual/dmi/id/product_name)"
|
model="$(< /sys/devices/virtual/dmi/id/product_name)"
|
||||||
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
|
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
|
||||||
model="${model/To Be Filled*}"
|
model="${model/To Be Filled*}"
|
||||||
|
|||||||
Reference in New Issue
Block a user