From c36513b80b7f625dba1bec3d96dcee391fed46c0 Mon Sep 17 00:00:00 2001 From: Otho Date: Mon, 16 Jan 2023 20:04:43 -0500 Subject: [PATCH] Fixed debug function bug. --- backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 77a9ddb..8949354 100755 --- a/backup.sh +++ b/backup.sh @@ -36,7 +36,9 @@ SNAPSHOT_DATASETS="" debug() { - if [ $BG_DEBUG_MODE = "TRUE" ]; then + if [ -z $BG_DEBUG_MODE || $BG_DEBUG_MODE != "TRUE" ]; then + : + else echo $@ fi }