Fix EXIT trap function call
The function call is valid, but the script uses `set -u`, so function calls without "optional" arguments trigger errors.
This commit is contained in:
parent
20e5c74316
commit
5b63d8190c
|
|
@ -25,7 +25,7 @@ cleanup () {
|
|||
rmdir --ignore-fail-on-non-empty $TEMP_ROOT_DIR || true
|
||||
fi
|
||||
}
|
||||
trap 'status=$?; cleanup; exit $status' EXIT
|
||||
trap 'status=$?; cleanup ""; exit $status' EXIT
|
||||
trap 'trap - HUP; cleanup SIGHUP; kill -HUP $$' HUP
|
||||
trap 'trap - INT; cleanup SIGINT; kill -INT $$' INT
|
||||
trap 'trap - TERM; cleanup SIGTERM; kill -TERM $$' TERM
|
||||
|
|
|
|||
Loading…
Reference in New Issue