This commit is contained in:
CanbiZ
2025-09-16 10:26:00 +02:00
parent 61c9c5ce80
commit 67ebb3782c
2 changed files with 2 additions and 4 deletions

View File

@@ -82,10 +82,9 @@ explain_exit_code() {
# === Error handler ============================================================
error_handler() {
local exit_code=${1:-$?}
local command=${2:-${BASH_COMMAND:-unknown}}
local line_number=${BASH_LINENO[0]:-unknown}
local command=${BASH_COMMAND:-unknown}
# $STD removal to show the actual failing command
command="${command//\$STD/}"
if [[ "$exit_code" -eq 0 ]]; then