[scripts][buildall] catch ctrl-c and abort the script
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user