Update error_handler.func
This commit is contained in:
parent
79b8b32bd2
commit
adf51e7086
@ -137,7 +137,10 @@ on_terminate() {
|
|||||||
|
|
||||||
# === Init traps ===============================================================
|
# === Init traps ===============================================================
|
||||||
init_error_traps() {
|
init_error_traps() {
|
||||||
set -Eeuo pipefail
|
set -Ee -o pipefail
|
||||||
|
if [ "${STRICT_UNSET:-0}" = "1" ]; then
|
||||||
|
set -u
|
||||||
|
fi
|
||||||
trap 'error_handler' ERR
|
trap 'error_handler' ERR
|
||||||
trap on_exit EXIT
|
trap on_exit EXIT
|
||||||
trap on_interrupt INT
|
trap on_interrupt INT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user