18.1: fix recovery signing

friendly reminder to take a break when dealing with the same issue for extended periods of time
This commit is contained in:
Tad 2021-04-06 05:06:15 -04:00
parent 9293f48b0c
commit d9238f8385
2 changed files with 50 additions and 7 deletions

View file

@ -199,9 +199,9 @@ processRelease() {
#Image
unzip -l $OUT_DIR/$PREFIX-target_files.zip | grep -q recovery.img;
local hasRecoveryImg="$?";
if [ "$hasRecoveryImg" == "0" ]; then
if [ "$hasRecoveryImg" == "1" ]; then
echo -e "\e[0;32mCreating fastboot image\e[0m";
"$RELEASETOOLS_PREFIX"img_from_target_files "$bootOnly" "$OUT_DIR/$PREFIX-target_files.zip" \
"$RELEASETOOLS_PREFIX"img_from_target_files "$OUT_DIR/$PREFIX-target_files.zip" \
"$OUT_DIR/$PREFIX-fastboot.zip";
sha512sum "$OUT_DIR/$PREFIX-fastboot.zip" > "$OUT_DIR/$PREFIX-fastboot.zip.sha512sum";
fi