Model: Small fix

This commit is contained in:
Dylan Araps 2016-11-14 00:43:58 +11:00
parent 47e450cf3c
commit 200a4ca46e
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ get_model() {
if [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
model="$(getprop ro.product.brand) $(getprop ro.product.model)"
elif [[ -f /sys/devices/virtual/dmi/id/product_name ]] ||\
[[ -f /sys/devices/virtual/dmi/id/product_version ]]; then
elif [[ -f /sys/devices/virtual/dmi/id/product_name ||
-f /sys/devices/virtual/dmi/id/product_version ]]; then
model="$(< /sys/devices/virtual/dmi/id/product_name)"
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
model="${model/To Be Filled*}"