OSDN Git Service

fix 4.3 check logic
authorKoushik Dutta <koushd@gmail.com>
Tue, 30 Jul 2013 04:41:52 +0000 (21:41 -0700)
committerKoushik Dutta <koushd@gmail.com>
Tue, 30 Jul 2013 04:41:52 +0000 (21:41 -0700)
Change-Id: Id87a853cdc20062e73b0f86786dd9b5d0b83b111

Superuser/assets/update-binary

index 6acff09..ea59473 100644 (file)
@@ -55,8 +55,10 @@ chmod 644 /system/app/Superuser.apk
 # let's try to install it using install-recovery.sh
 BUILD_RELEASE_VERSION=$(cat /system/build.prop | grep ro\\.build\\.version\\.release)
 IS_43=$(echo $BUILD_RELEASE_VERSION | grep 4\\.3)
-if [ -z "$IS_43" -o "$IS_43" \> "4.3"  -o "$IS_43" == "4.3" ]
+if [ ! -z "$IS_43" ]
 then
+  if [ -o "$IS_43" \> "4.3"  -o "$IS_43" == "4.3" ]
+  then
     # check for rom su daemon before clobbering install-recovery.sh
     if [ ! -f "/system/etc/.has_su_daemon" ]
     then
@@ -69,6 +71,7 @@ then
         # the install-recovery.sh execute bit.
         touch /system/etc/.installed_su_daemon
     fi
+  fi
 fi
 
 umount /system
\ No newline at end of file