Skip to content

Commit 535e011

Browse files
committed
Add safety net to debug() SHOW_OUTPUT
1 parent 5a391b9 commit 535e011

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/assets/functions/10-db-backup

+3
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,9 @@ debug() {
12191219
fi
12201220
if [ -z "${_original_show_output}" ]; then
12211221
_original_show_output="${SHOW_OUTPUT}"
1222+
if ! [[ "${_original_show_output,,}" =~ true|false ]]; then
1223+
__original_show_output="FALSE"
1224+
fi
12221225
fi
12231226
backup_job_log_level=DEBUG
12241227
CONTAINER_LOG_LEVEL=DEBUG

0 commit comments

Comments
 (0)