Browse Source

Fix: error code check

wudi 4 years ago
parent
commit
f521e6c474
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install.sh

+ 1 - 1
install.sh

@@ -30,7 +30,7 @@ copy_scripts () {
     adb push start.sh /sdcard/start.sh
     adb push start_fg.sh /sdcard/crond.sh
     adb shell "su - [ -d /data/data/com.termux/files/home ]"
-    if [ "$?" = "1" ]; then
+    if [ "$?" != "0" ]; then
         read -p "Launch Termux for its bootstraping, press any key when completed"
     fi
     adb shell 'su - mv -f /sdcard/start.sh /data/data/com.termux/files/home/start.sh'