common: Add debug mode

This commit is contained in:
tschettervictor
2025-01-20 18:50:06 -07:00
committed by GitHub
parent 22831e4b82
commit 5746af3581

View File

@@ -61,6 +61,12 @@ error_notify() {
echo -e "${COLOR_RED}$*${COLOR_RESET}" 1>&2
}
enable_debug() {
# Enable debug mode.
warn "***DEBUG MODE***"
set -x
}
error_continue() {
error_notify "$@"
# Disabling this shellcheck as we only ever call it inside of a loop