From 264eee5c3622ecf11e197ddf9235dcd10de4f72a Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Mon, 2 Sep 2024 15:06:46 +0100 Subject: [PATCH] Call pre-build.sh --- src/new_build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/new_build.sh b/src/new_build.sh index d29d9ac..3f3f842 100644 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -328,6 +328,13 @@ for codename in ${devices//,/ }; do continue fi + # Call pre-build.sh + if [ -f /root/userscripts/pre-build.sh ]; then + echo ">> [$(date)] Running pre-build.sh for $codename" >> "$DEBUG_LOG" + /root/userscripts/pre-build.sh "$codename" &>> "$DEBUG_LOG" || { + echo ">> [$(date)] Error: pre-build.sh failed for $codename on $branch!"; userscriptfail=true; continue; } + fi + fi # More stuff to do