Group unsupported formats into the same code

This commit is contained in:
topjohnwu
2019-02-24 02:30:04 -05:00
parent defbbdfe21
commit 86f778c0aa
2 changed files with 6 additions and 17 deletions

View File

@@ -75,19 +75,12 @@ ui_print "- Unpacking boot image"
case $? in
1 )
abort "! Unable to unpack boot image"
abort "! Unsupported/Unknown image format"
;;
2 )
ui_print "- ChromeOS boot image detected"
CHROMEOS=true
;;
3 )
ui_print "! Sony ELF32 format detected"
abort "! Please use BootBridge from @AdrianDC to flash Magisk"
;;
4 )
ui_print "! Sony ELF64 format detected"
abort "! Stock kernel cannot be patched, please use a custom kernel"
esac
##########################################################################################