Commit c5758b3f authored by topjohnwu's avatar topjohnwu

Update scripts

parent ace3708c
...@@ -43,12 +43,12 @@ show_logo() { ...@@ -43,12 +43,12 @@ show_logo() {
installation() { installation() {
find_manager_apk find_manager_apk
get_flags
find_boot_image find_boot_image
find_dtbo_image find_dtbo_image
[ -z $BOOTIMAGE ] && abort "! Unable to detect target image" [ -z $BOOTIMAGE ] && abort "! Unable to detect target image"
ui_print "- Target image: $BOOTIMAGE" ui_print "- Target image: $BOOTIMAGE"
[ -z $DTBOIMAGE ] || ui_print "- DTBO image: $DTBOIMAGE" [ -z $DTBOIMAGE ] || ui_print "- DTBO image: $DTBOIMAGE"
get_flags
remove_system_su remove_system_su
......
...@@ -41,12 +41,10 @@ ui_print "************************" ...@@ -41,12 +41,10 @@ ui_print "************************"
ui_print "* Magisk v$MAGISK_VER Installer" ui_print "* Magisk v$MAGISK_VER Installer"
ui_print "************************" ui_print "************************"
is_mounted /data || mount /data || is_mounted /cache || mount /cache || abort "! Unable to mount partitions" is_mounted /data || mount /data || is_mounted /cache || mount /cache
mount_partitions mount_partitions
check_data check_data
get_flags get_flags
find_boot_image find_boot_image
[ -z $BOOTIMAGE ] && abort "! Unable to detect target image" [ -z $BOOTIMAGE ] && abort "! Unable to detect target image"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment