From 50c9fd2bc8bf448c4cdcb3488c6f03c1dd732787 Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan Date: Thu, 17 Jun 2021 13:24:09 +0000 Subject: [PATCH] Changes for June 2021 - Add abort-early mechanism --- buildbot_treble.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/buildbot_treble.sh b/buildbot_treble.sh index 338686b..ca29170 100755 --- a/buildbot_treble.sh +++ b/buildbot_treble.sh @@ -6,6 +6,16 @@ echo "Executing in 5 seconds - CTRL-C to exit" echo "" sleep 5 +# Abort early on error +set -eE +trap '(\ +echo;\ +echo \!\!\! An error happened during script execution;\ +echo \!\!\! Please check console output for bad sync,;\ +echo \!\!\! failed patch application, etc.;\ +echo\ +)' ERR + START=`date +%s` BUILD_DATE="$(date +%Y%m%d)" BL=$PWD/treble_build_los