Browse Source

Fix the model fetching

walking-octopus 3 năm trước cách đây
mục cha
commit
a1e99aa0d3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      neofetch

+ 1 - 1
neofetch

@@ -1244,7 +1244,7 @@ get_distro() {
 get_model() {
     case $os in
         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)"
 
             elif [[ -f /sys/devices/virtual/dmi/id/board_vendor ||