mirror of
https://github.com/topjohnwu/Magisk
synced 2025-08-31 07:25:12 +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