From adf51e70868a96839efa8f14b662d500295c6276 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 16 Sep 2025 16:02:19 +0200 Subject: [PATCH] Update error_handler.func --- misc/error_handler.func | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/error_handler.func b/misc/error_handler.func index edbf6f1a..21996969 100644 --- a/misc/error_handler.func +++ b/misc/error_handler.func @@ -137,7 +137,10 @@ on_terminate() { # === Init 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 on_exit EXIT trap on_interrupt INT