mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
error-handler
This commit is contained in:
@@ -85,8 +85,8 @@ error_handler() {
|
||||
local line_number=${BASH_LINENO[0]:-unknown}
|
||||
local command=${BASH_COMMAND:-unknown}
|
||||
|
||||
# $STD im Kommando entfernen (nur kosmetisch)
|
||||
command=${command//\$STD /}
|
||||
# $STD removal to show the actual failing command
|
||||
command="${command//\$STD/}"
|
||||
|
||||
if [[ "$exit_code" -eq 0 ]]; then
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user