From fcec1c8887183d91b31e9a3b8e61c504c98b68f8 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 ed85e641..c1806b83 100644 --- a/Scripts/Common/Functions.sh +++ b/Scripts/Common/Functions.sh @@ -393,7 +393,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="$?"; unzip -l $OUT_DIR/$PREFIX-target_files.zip | grep -q dtbo.img; local hasDtboImg="$?";