Fix output in Magisk Manager if no root exists

This commit is contained in:
topjohnwu
2018-09-20 16:21:22 -04:00
parent 04bcd145d3
commit 3f87f6aee3
2 changed files with 3 additions and 2 deletions

View File

@@ -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