OSDN Git Service
(root)
/
android-x86
/
external-koush-Superuser.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8d17bf
)
update-binary: Fix 4.3+ version check
author
Kevin Cernekee
<cernekee@gmail.com>
Fri, 15 Nov 2013 05:55:36 +0000
(21:55 -0800)
committer
Kevin Cernekee
<cernekee@gmail.com>
Fri, 15 Nov 2013 05:55:36 +0000
(21:55 -0800)
In Bug #194 a check for 4.3+ was added, but checking major and minor
separately would yield an incorrect result on e.g. v5.0. Fix this.
Superuser/assets/update-binary
patch
|
blob
|
history
diff --git
a/Superuser/assets/update-binary
b/Superuser/assets/update-binary
index
76423c0
..
f56f3e7
100755
(executable)
--- a/
Superuser/assets/update-binary
+++ b/
Superuser/assets/update-binary
@@
-62,7
+62,7
@@
MAJ=${VERSION%%.*}
MIN=${VERSION#*.}
MIN=${MIN//.*}
-if [ "$
MAJ" -ge 4 -a "$MIN" -ge
3 ]
+if [ "$
{MAJ}${MIN}" -ge 4
3 ]
then
# on 4.3+, the daemon need not be setuid.
chmod 0755 /system/xbin/su