ERR trap
This commit is contained in:
parent
b46dc6b981
commit
8d5a0a4061
@ -15,6 +15,8 @@
|
||||
#
|
||||
set -eu
|
||||
|
||||
trap "kill `jobs -p` &> /dev/null || true" ERR
|
||||
|
||||
# Exit, with status code "skip" (no 'real' failure)
|
||||
function exit_skip() {
|
||||
echo $1
|
||||
|
@ -8,7 +8,7 @@
|
||||
set -eu
|
||||
|
||||
|
||||
trap "kill `jobs -p` &> /dev/null || true" EXIT
|
||||
trap "kill `jobs -p` &> /dev/null || true" ERR
|
||||
|
||||
# Exit, with status code "skip" (no 'real' failure)
|
||||
function exit_skip() {
|
||||
|
Loading…
Reference in New Issue
Block a user