Changes for June 2021

- Add abort-early mechanism
This commit is contained in:
Andy CrossGate Yan 2021-06-17 13:24:09 +00:00
parent f7e38fb411
commit 50c9fd2bc8

View File

@ -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