mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 17:45:54 +00:00
Update error_handler.func
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user