don't create stack trace when set -e is disabled

This commit is contained in:
reyesj2
2026-06-18 14:56:29 -05:00
parent 16149df71f
commit 22d5c96bd5
+2
View File
@@ -131,6 +131,8 @@ check_err() {
# Collect bash error context before passing off to check_err()
on_err() {
local exit_code=$?
# Ignore failures in blocks that explicitly disabled errexit with `set +e`.
[[ $- == *e* ]] || return $exit_code
# turn off xtrace to prevent added noise in debug log
set +x 2>/dev/null || true