Fixed syntax issue

This commit is contained in:
Enrico Ludwig 2024-05-24 12:58:26 +02:00
parent df7106a956
commit 00d9d2a8aa

View File

@ -69,7 +69,7 @@ SKIP_CONFIG=0 # Set to 1 to skip the borgmatic configuration
readonly SCRIPT_NAME="Borgmatic Backup Setup Tool"
readonly SCRIPT_AUTHOR="Zion Networks at admin@zion-networks.de"
readonly SCRIPT_SUPPORT="admin@zion-networks.de"
readonly VERSION="1.2.3"
readonly VERSION="1.2.4"
# logging functions
function inf {
@ -967,6 +967,7 @@ if inf_follow "Checking for existing borgmatic repository..." "\e[1;32mYes\e[0m"
err "A borgmatic repository already exists."
err "Please remove the existing repository or use the --override-repository option."
exit 1
fi
else
wrn "Existing borgmatic repository will be overridden!"
fi
@ -974,7 +975,6 @@ else
inf "No existing borgmatic repository found."
fi
# ask for backup passphrase if none is set and encryption is enabled
if [ -z "$BACKUP_PASSPHRASE" ] && [ "$BACKUP_ENCRYPTION" != "none" ]; then
wrn "Please enter the passphrase for the backup encryption."