Преглед на файлове

Fix the shellcheck error

walking-octopus преди 3 години
родител
ревизия
69907f6f8b
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      neofetch

+ 2 - 1
neofetch

@@ -1125,7 +1125,8 @@ get_distro() {
             distro=${distro/NAME=}
 
             if [[ -f /usr/bin/system-image-cli ]]; then
-                export ut_ota=$(system-image-cli -i | awk '/version tag:/ { print $3 }');
+            	local ut_ota
+                ut_ota=$(system-image-cli -i | awk '/version tag:/ { print $3 }');
                 distro="Ubuntu Touch $ut_ota";
 
                 # There's a weird UT bug where the HOSTNAME is set to android.