Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -38,7 +38,7 @@ trap_on_exit() {
|
||||
|
||||
trap - DEBUG ERR EXIT INT TERM
|
||||
|
||||
### Defensive shell behavior inside trap.
|
||||
### Defensive shell behavior inside the trap.
|
||||
set +e +o pipefail
|
||||
|
||||
if (( errcode == 0 )); then
|
||||
@@ -53,7 +53,7 @@ trap_on_exit() {
|
||||
|
||||
else
|
||||
|
||||
if [[ ! "${ERRTRAP}" == "true" ]]; then
|
||||
if [[ "${ERRTRAP}" != "true" ]]; then
|
||||
|
||||
if "${VAR_EARLY_DEBUG}"; then dump_user_vars; fi
|
||||
|
||||
@@ -72,7 +72,7 @@ trap_on_exit() {
|
||||
readonly -f trap_on_exit
|
||||
|
||||
#######################################
|
||||
# Print success message for trap on 'EXIT' on 'stdout'.
|
||||
# Print a success message for the trap on 'EXIT' on 'stdout'.
|
||||
# Globals:
|
||||
# LOG_DEBUG
|
||||
# LOG_VAR
|
||||
@@ -131,7 +131,7 @@ print_scr_exit() {
|
||||
readonly -f print_scr_exit
|
||||
|
||||
#######################################
|
||||
# Trap on 'EXIT' handler for 'non-0' exit-code.
|
||||
# Trap on the 'EXIT' handler for 'non-0' exit-code.
|
||||
# Globals:
|
||||
# BASHOPTS
|
||||
# EPOCHREALTIME
|
||||
|
||||
Reference in New Issue
Block a user