Replace ! -z with -n

pull/4/head
drunkendog 2023-08-14 17:26:27 +01:00
parent 8e33572053
commit bafd045a5f
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
. /etc/backup.conf . /etc/backup.conf
if [ ! -z "$HEALTHCHECK_URL" ]; then if [ -n "$HEALTHCHECK_URL" ]; then
curl -L "{$HEALTHCHECK_URL}/start" curl -L "{$HEALTHCHECK_URL}/start"
fi fi
@ -67,7 +67,7 @@ else
info "Backup, Prune, and/or Compact finished with errors" info "Backup, Prune, and/or Compact finished with errors"
fi fi
if [ ! -z "$HEALTHCHECK_URL" ]; then if [ -n "$HEALTHCHECK_URL" ]; then
curl -L "{$HEALTHCHECK_URL}/{$global_exit}" curl -L "{$HEALTHCHECK_URL}/{$global_exit}"
fi fi