Replace ! -z with -n
parent
8e33572053
commit
bafd045a5f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue