V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m27s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m27s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -90,6 +90,9 @@ print_file_err() {
|
||||
printf "%b" "${NL}"
|
||||
} >> "${LOG_ERR}"
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f print_file_err
|
||||
|
||||
#######################################
|
||||
# Print Error Message for Trap on 'ERR' on Terminal.
|
||||
@@ -170,6 +173,9 @@ print_scr_err() {
|
||||
print_stacktrace
|
||||
printf "%b" "${NL}"
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f print_scr_err
|
||||
|
||||
#######################################
|
||||
# Print function() stacktrace.
|
||||
@@ -177,6 +183,8 @@ print_scr_err() {
|
||||
# BASH_LINENO
|
||||
# BASH_SOURCE
|
||||
# FUNCNAME
|
||||
# LINENO
|
||||
# LOG_ERR
|
||||
# NL
|
||||
# RED
|
||||
# RES
|
||||
@@ -200,6 +208,9 @@ print_stacktrace() {
|
||||
done
|
||||
printf "%b" "${NL}"
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f print_stacktrace
|
||||
|
||||
#######################################
|
||||
# Trap function to be called on 'ERR'.
|
||||
@@ -212,6 +223,7 @@ print_stacktrace() {
|
||||
# ERRTRAP
|
||||
# VAR_DEBUG_TRACE
|
||||
# VAR_DEBUG_TRAP
|
||||
# VAR_HEADROOM
|
||||
# VAR_IN_DIALOG_WR
|
||||
# Arguments:
|
||||
# 1: "$?"
|
||||
@@ -245,4 +257,7 @@ trap_err() {
|
||||
print_file_err
|
||||
print_scr_err
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f trap_err
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user