From f8ae4086eff6a696998502be996afad93271e6de Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Tue, 27 Sep 2022 18:17:14 +0200 Subject: [PATCH] fix that no borg backups variables are showen --- pfsense-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfsense-backup.sh b/pfsense-backup.sh index 11142e5..b74ee53 100755 --- a/pfsense-backup.sh +++ b/pfsense-backup.sh @@ -41,7 +41,7 @@ function check_pfSense_optional_vars() { function check_borg_backup_vars() { local errors=0 - if [ ! -z "$BORG_BACKUP_TRUE" ]; then + if [ -z "$BORG_BACKUP_TRUE" ]; then if [ "$BORG_REPO" ]; then echo "Musst provice BORG_REPO"; errors=$(($errors + 1)); fi if [ "$BORG_CREATE_PARAMS" ]; then echo "Musst provice BORG_CREATE_PARAMS"; errors=$(($errors + 1)); fi if [ "$BORG_PRUNE_PARAMS" ]; then echo "Musst provice BORG_PRUNE_PARAMS"; errors=$(($errors + 1)); fi