mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 21:27:41 +02:00
scripts: fix sloppy/unpredictable cmd && this || that
statements
- be a bit more POSIX to avoid any potential issues when full shell stdout/err are redirected - actual logic chains remain unchanged
This commit is contained in:
@ -63,7 +63,8 @@ pgrep magiskd >/dev/null && pkill -9 magiskd
|
||||
[ -f /system/bin/magisk ] && umount -l /system/bin
|
||||
|
||||
# SELinux stuffs
|
||||
[ -e /sys/fs/selinux ] && SELINUX=true || SELINUX=false
|
||||
SELINUX=false
|
||||
[ -e /sys/fs/selinux ] && SELINUX=true
|
||||
if $SELINUX; then
|
||||
ln -sf ./magiskinit magiskpolicy
|
||||
./magiskpolicy --live --magisk
|
||||
|
Reference in New Issue
Block a user