[core] Show incompatible frameworks id (#564)

This commit is contained in:
vvb2060 2021-05-11 18:23:12 +08:00 committed by GitHub
parent 43a5dd80a9
commit a5aa86ec31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -45,13 +45,13 @@ check_android_version() {
check_incompatible_module() {
MODULEDIR="$(magisk --path)/.magisk/modules"
FINDMODULE=false
for id in "riru_dreamland" "riru_edxposed" "riru_edxposed_sandhook" "taichi"; do
[ -d $MODULEDIR/$id ] && [ ! -f $MODULEDIR/$id/disable ] && FINDMODULE=true
if [ -d "$MODULEDIR/$id" ] && [ ! -f "$MODULEDIR/$id/disable" ]; then
ui_print "*********************************************************"
ui_print "! Please disable or uninstall incompatible frameworks:"
ui_print "! $id"
abort "*********************************************************"
break
fi
done
if $FINDMODULE; then
ui_print "*********************************************************"
ui_print "! Please disable or uninstall incompatible frameworks (Dreamland, EdXposed or Taichi)"
abort "*********************************************************"
fi
}