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

Commit

Permalink
Add abort-early mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyCGYan authored and ponces committed Jun 22, 2021
1 parent 582afc3 commit ea755ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions buildbot_treble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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_pe
Expand Down

0 comments on commit ea755ad

Please sign in to comment.