From 5bf4386a533b2edd5cbde0311bf04eeaa6797d6e Mon Sep 17 00:00:00 2001 From: Ducky Date: Tue, 2 Apr 2024 00:18:18 +0100 Subject: [PATCH] sh.zio.backup: fix logic --- usr/local/bin/sh.zio.backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/bin/sh.zio.backup b/usr/local/bin/sh.zio.backup index 829ce40..0d4e9ca 100755 --- a/usr/local/bin/sh.zio.backup +++ b/usr/local/bin/sh.zio.backup @@ -166,7 +166,7 @@ function trigger_notify() { if [[ ! -f "$notify_prog" ]]; then say warning "'$notify_prog' does not exist. Not sending notification" else - if [[ -n "$message" ]]; then + if [[ "$message" == "" ]]; then "$notify_prog" \ --file "$log_path" \ --level "$level" \