From eb1b7fa10726691cbd796c997b8f34a4efb27e4e Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Mon, 2 Sep 2024 16:00:14 +0100 Subject: [PATCH] Check userscriptfail *for each device*. Exit immediately if true --- src/new_build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/new_build.sh b/src/new_build.sh index 7716247..09fd4c6 100644 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -408,6 +408,11 @@ for codename in ${devices//,/ }; do echo ">> [$(date)] Error: post-build.sh failed for $codename on $branch!"; userscriptfail=true; } fi echo ">> [$(date)] Finishing build for $codename" | tee -a "$DEBUG_LOG" + do_cleanup + if [ $userscriptfail = true ]; then + echo ">> [$(date)] One or more userscripts failed!" + exit 1 + fi fi done