From bafd045a5f0217b5624e450b810263121845bb4c Mon Sep 17 00:00:00 2001 From: drunkendog Date: Mon, 14 Aug 2023 17:26:27 +0100 Subject: [PATCH] Replace ! -z with -n --- backup/backup-script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup-script.sh b/backup/backup-script.sh index e0a4c84..6d2f0ab 100644 --- a/backup/backup-script.sh +++ b/backup/backup-script.sh @@ -2,7 +2,7 @@ . /etc/backup.conf -if [ ! -z "$HEALTHCHECK_URL" ]; then +if [ -n "$HEALTHCHECK_URL" ]; then curl -L "{$HEALTHCHECK_URL}/start" fi @@ -67,7 +67,7 @@ else info "Backup, Prune, and/or Compact finished with errors" fi -if [ ! -z "$HEALTHCHECK_URL" ]; then +if [ -n "$HEALTHCHECK_URL" ]; then curl -L "{$HEALTHCHECK_URL}/{$global_exit}" fi