From 0ca1c41e8b392e1a6fdfef1b738d9f99386972df Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Tue, 26 Sep 2023 14:54:04 +0200 Subject: [PATCH] common: do not abort when recovery-in-boot when using strict (i.e set -e added by this PR) a build will fail on release when there is no recovery.img. this makes that non-fatal allowing to proceed Signed-off-by: steadfasterX --- Scripts/Common/Functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Common/Functions.sh b/Scripts/Common/Functions.sh index 7856b457..d01b12c8 100644 --- a/Scripts/Common/Functions.sh +++ b/Scripts/Common/Functions.sh @@ -343,7 +343,7 @@ processRelease() { echo "$INCREMENTAL_ID" > "$OUT_DIR/$PREFIX-target_files.zip.id"; #Image - unzip -l $OUT_DIR/$PREFIX-target_files.zip | grep -q recovery.img; + unzip -l $OUT_DIR/$PREFIX-target_files.zip | grep -q recovery.img || true; local hasRecoveryImg="$?"; if [ "$hasRecoveryImg" == "1" ]; then echo -e "\e[0;32mCreating fastboot image\e[0m";