V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 41s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 41s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -45,7 +45,7 @@ guard_sourcing
|
||||
print_file_err() {
|
||||
{
|
||||
printf "❌ CISS.debian.installer Script failed. %b" "${NL}"
|
||||
printf "❌ GIT Commit : %s %b" "${VAR_GIT_HEAD}" "${NL}"
|
||||
printf "❌ GIT Commit : %s %b" "${VAR_GIT_REL}" "${NL}"
|
||||
printf "❌ Version : %s %b" "${VAR_VERSION}" "${NL}"
|
||||
printf "❌ Epoch : %s %b" "${EPOCHREALTIME}" "${NL}"
|
||||
printf "❌ Bash MAJ Release : %s %b" "${BASH_VERSINFO[0]}" "${NL}"
|
||||
@@ -114,7 +114,7 @@ print_file_err() {
|
||||
#######################################
|
||||
print_scr_err() {
|
||||
printf "%b❌ CISS.debian.installer Script failed. %b%b" "${RED}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ GIT Commit : %s %b%b" "${RED}" "${VAR_GIT_HEAD}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ GIT Commit : %s %b%b" "${RED}" "${VAR_GIT_REL}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Version : %s %b%b" "${RED}" "${VAR_VERSION}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Epoch : %s %b%b" "${RED}" "${EPOCHREALTIME}" "${RES}" "${NL}" >&2
|
||||
printf "%b❌ Bash MAJ Release : %s %b%b" "${RED}" "${BASH_VERSINFO[0]}" "${RES}" "${NL}" >&2
|
||||
@@ -167,20 +167,15 @@ print_scr_err() {
|
||||
#######################################
|
||||
print_stacktrace() {
|
||||
declare -i i=0
|
||||
printf "%b" "${NL}"
|
||||
printf "%b❌ %b%b" "${RED}" "${RES}" "${NL}"
|
||||
printf "%b❌ Raw Stacktrace : %b%b" "${RED}" "${RES}" "${NL}"
|
||||
for ((i=0; i<${#FUNCNAME[@]}-1; i++)); do
|
||||
printf "%b❌ ↳ %s() at: [%s:%s] %b%b" "${RED}" "${FUNCNAME[i]}" "${BASH_SOURCE[i]}" "${BASH_LINENO[i-1]}" "${RES}" "${NL}"
|
||||
if (( i == 0 )); then
|
||||
printf "%b❌ ↳ %s() at: [%s:%s] %b%b" "${RED}" "${FUNCNAME[i]}" "${BASH_SOURCE[i]}" "${LINENO:-?}" "${RES}" "${NL}"
|
||||
else
|
||||
printf "%b❌ ↳ %s() at: [%s:%s] %b%b" "${RED}" "${FUNCNAME[i]}" "${BASH_SOURCE[i]}" "${BASH_LINENO[i-1]:-?}" "${RES}" "${NL}"
|
||||
fi
|
||||
done
|
||||
|
||||
#declare -i i
|
||||
### Default: 2 = skip trap_on_err() and print_stacktrace()
|
||||
#declare skip=${1:-2}
|
||||
#printf "%b" "${NL}"
|
||||
#printf "%b❌ Stacktrace (most recent call first): %b%b" "${RED}" "${RES}" "${NL}" >&2
|
||||
#for ((i=skip; i<${#FUNCNAME[@]}-1; i++)); do
|
||||
# printf "%b❌ ↳ %s() at[ %s:%s] %b%b" "${RED}" "${FUNCNAME[i]}" "${BASH_SOURCE[i]}" "${BASH_LINENO[i-1]}" "${RES}" "${NL}"
|
||||
#done
|
||||
}
|
||||
|
||||
#######################################
|
||||
|
||||
Reference in New Issue
Block a user