Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit ea755ad

Browse files
AndyCGYanponces
authored andcommitted
Add abort-early mechanism
1 parent 582afc3 commit ea755ad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

buildbot_treble.sh

+10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ echo "Executing in 5 seconds - CTRL-C to exit"
66
echo ""
77
sleep 5
88

9+
# Abort early on error
10+
set -eE
11+
trap '(\
12+
echo;\
13+
echo \!\!\! An error happened during script execution;\
14+
echo \!\!\! Please check console output for bad sync,;\
15+
echo \!\!\! failed patch application, etc.;\
16+
echo\
17+
)' ERR
18+
919
START=`date +%s`
1020
BUILD_DATE="$(date +%Y%m%d)"
1121
BL=$PWD/treble_build_pe

0 commit comments

Comments
 (0)