diff --git a/borgmatic_setup.sh b/borgmatic_setup.sh index c118cd1..8e2b28e 100755 --- a/borgmatic_setup.sh +++ b/borgmatic_setup.sh @@ -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."