Skip to content

Commit dda5afc

Browse files
committed
fix loki when already rooted
1 parent e2dbaa5 commit dda5afc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

files/run_root.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ get_uid()
99
}
1010

1111
if [ -f /system/xbin/su ] ; then
12-
/system/xbin/su
1312
if [ `get_uid` eq 0 ] ; then
14-
$1
13+
/system/xbin/su -c "$1"
1514
exit 0
1615
fi
1716
fi

0 commit comments

Comments
 (0)