mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 18:13:50 +00:00
Previously, silent() called exit on failure, making all 86+ instances of '$STD cmd || true' across the codebase silently broken - the || true never had a chance to execute. Now silent() returns the exit code, letting callers handle errors: - $STD cmd || true -> works correctly (continues on failure) - $STD cmd -> set -e + ERR trap catches it -> error_handler() error_handler() picks up metadata (_SILENT_FAILED_*) from silent() to show the actual command, line number, and log tail.
29 KiB
29 KiB