Skip to content

Commit

Permalink
[scripts][buildall] catch ctrl-c and abort the script
Browse files Browse the repository at this point in the history
  • Loading branch information
travisg committed Jun 14, 2024
1 parent 50b6f8c commit 74864a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/buildall
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

set -o pipefail

handle_interrupt() {
echo "Caught ctrl-c, exiting"
exit 1
}

trap 'handle_interrupt' SIGINT

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

function HELP {
Expand Down

0 comments on commit 74864a5

Please sign in to comment.