Update error_handler.func

This commit is contained in:
CanbiZ 2025-09-16 16:02:19 +02:00
parent 79b8b32bd2
commit adf51e7086

View File

@ -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