From 1858eec1c62a93110b7f7c1b23583d35ae611958 Mon Sep 17 00:00:00 2001 From: Otho Date: Mon, 16 Jan 2023 20:15:56 -0500 Subject: [PATCH] Fixed debug function bug. --- backup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index 78a7175..14478bb 100755 --- a/backup.sh +++ b/backup.sh @@ -37,9 +37,7 @@ SNAPSHOT_DATASETS="" debug() { - if [ -z $BG_DEBUG_MODE -o $BG_DEBUG_MODE != "TRUE" ]; then - : - else + if [ "$BG_DEBUG_MODE" = "TRUE" ]; then echo $@ fi }