mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 17:45:54 +00:00
Update core.func
This commit is contained in:
@@ -9,16 +9,16 @@
|
|||||||
# }
|
# }
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
trap 'on_error $? $LINENO' ERR
|
# trap 'on_error $? $LINENO' ERR
|
||||||
trap 'on_exit' EXIT
|
# trap 'on_exit' EXIT
|
||||||
trap 'on_interrupt' INT
|
# trap 'on_interrupt' INT
|
||||||
trap 'on_terminate' TERM
|
# trap 'on_terminate' TERM
|
||||||
|
|
||||||
if ! declare -f wait_for >/dev/null; then
|
# if ! declare -f wait_for >/dev/null; then
|
||||||
wait_for() {
|
# wait_for() {
|
||||||
true
|
# true
|
||||||
}
|
# }
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# declare -A MSG_INFO_SHOWN=()
|
# declare -A MSG_INFO_SHOWN=()
|
||||||
# SPINNER_PID=""
|
# SPINNER_PID=""
|
||||||
@@ -120,13 +120,8 @@ _tool_error_hint() {
|
|||||||
# }
|
# }
|
||||||
|
|
||||||
catch_errors() {
|
catch_errors() {
|
||||||
trap 'on_error' ERR
|
|
||||||
trap 'on_exit' EXIT
|
|
||||||
trap 'on_interrupt' INT
|
|
||||||
trap 'on_terminate' TERM
|
|
||||||
|
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
shopt -s inherit_errexit
|
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user