AK3: fix repack return check with magiskboot

This commit is contained in:
osm0sis committed 2023-08-28 22:37:04 -03:00
1 parent 7b28c94d1f
commit b52433bf12
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE) # Dummy file; update-binary is a shell script (DO NOT CHANGE)
# #
# #
# AK_BASE_VERSION=20230822 # AK_BASE_VERSION=20230828
+4 -2
View File
@@ -386,12 +386,14 @@ flash_boot() {
*) export PATCHVBMETAFLAG=false;; *) export PATCHVBMETAFLAG=false;;
esac; esac;
$bin/magiskboot repack $nocompflag $bootimg $home/boot-new.img; $bin/magiskboot repack $nocompflag $bootimg $home/boot-new.img;
unset PATCHVBMETAFLAG;
fi; fi;
if [ $? != 0 ]; then if [ $? != 0 ]; then
abort "Repacking image failed. Aborting..."; abort "Repacking image failed. Aborting...";
fi; fi;
[ -f .magisk ] && touch $home/magisk_patched; if [ -f .magisk ]; then
touch $home/magisk_patched;
unset PATCHVBMETAFLAG;
fi;
cd $home; cd $home;
if [ -f "$bin/futility" -a -d "$bin/chromeos" ]; then if [ -f "$bin/futility" -a -d "$bin/chromeos" ]; then