mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 02:17:37 +00:00
scripts: only show addon.d error once on failures
This commit is contained in:
parent
834561a5de
commit
2742edd73f
@ -12,7 +12,7 @@ trampoline() {
|
||||
if [ -f $MAGISKBIN/addon.d.sh ]; then
|
||||
exec sh $MAGISKBIN/addon.d.sh "$@"
|
||||
exit $?
|
||||
else
|
||||
elif [ "$1" = post-restore ]; then
|
||||
ps | grep zygote | grep -v grep >/dev/null && BOOTMODE=true || BOOTMODE=false
|
||||
$BOOTMODE || ps -A 2>/dev/null | grep zygote | grep -v grep >/dev/null && BOOTMODE=true
|
||||
|
||||
@ -31,8 +31,8 @@ trampoline() {
|
||||
ui_print "***********************"
|
||||
ui_print "! Cannot find Magisk binaries - was data wiped or not decrypted?"
|
||||
ui_print "! Reflash OTA from decrypted recovery or reflash Magisk"
|
||||
exit 1
|
||||
fi
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Always use the script in /data
|
||||
|
Loading…
x
Reference in New Issue
Block a user