mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-01 14:16:06 +00:00
Fix output in Magisk Manager if no root exists
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
#MAGISK_VERSION_STUB
|
||||
|
||||
# Detect whether in boot mode
|
||||
ps | grep zygote | grep -qv grep && BOOTMODE=true || BOOTMODE=false
|
||||
[ -z $BOOTMODE ] && BOOTMODE=false
|
||||
$BOOTMODE || ps | grep zygote | grep -qv grep && BOOTMODE=true
|
||||
$BOOTMODE || ps -A | grep zygote | grep -qv grep && BOOTMODE=true
|
||||
|
||||
# Presets
|
||||
|
||||
Reference in New Issue
Block a user