Add safety net to debug() SHOW_OUTPUT

This commit is contained in:
Dave Conroy
2023-11-11 07:28:38 -08:00
parent 5a391b908a
commit 535e011740

View File

@@ -1219,6 +1219,9 @@ debug() {
fi
if [ -z "${_original_show_output}" ]; then
_original_show_output="${SHOW_OUTPUT}"
if ! [[ "${_original_show_output,,}" =~ true|false ]]; then
__original_show_output="FALSE"
fi
fi
backup_job_log_level=DEBUG
CONTAINER_LOG_LEVEL=DEBUG