Fixed syntax issue
This commit is contained in:
parent
df7106a956
commit
00d9d2a8aa
@ -69,7 +69,7 @@ SKIP_CONFIG=0 # Set to 1 to skip the borgmatic configuration
|
|||||||
readonly SCRIPT_NAME="Borgmatic Backup Setup Tool"
|
readonly SCRIPT_NAME="Borgmatic Backup Setup Tool"
|
||||||
readonly SCRIPT_AUTHOR="Zion Networks at admin@zion-networks.de"
|
readonly SCRIPT_AUTHOR="Zion Networks at admin@zion-networks.de"
|
||||||
readonly SCRIPT_SUPPORT="admin@zion-networks.de"
|
readonly SCRIPT_SUPPORT="admin@zion-networks.de"
|
||||||
readonly VERSION="1.2.3"
|
readonly VERSION="1.2.4"
|
||||||
|
|
||||||
# logging functions
|
# logging functions
|
||||||
function inf {
|
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 "A borgmatic repository already exists."
|
||||||
err "Please remove the existing repository or use the --override-repository option."
|
err "Please remove the existing repository or use the --override-repository option."
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
wrn "Existing borgmatic repository will be overridden!"
|
wrn "Existing borgmatic repository will be overridden!"
|
||||||
fi
|
fi
|
||||||
@ -974,7 +975,6 @@ else
|
|||||||
inf "No existing borgmatic repository found."
|
inf "No existing borgmatic repository found."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ask for backup passphrase if none is set and encryption is enabled
|
# ask for backup passphrase if none is set and encryption is enabled
|
||||||
if [ -z "$BACKUP_PASSPHRASE" ] && [ "$BACKUP_ENCRYPTION" != "none" ]; then
|
if [ -z "$BACKUP_PASSPHRASE" ] && [ "$BACKUP_ENCRYPTION" != "none" ]; then
|
||||||
wrn "Please enter the passphrase for the backup encryption."
|
wrn "Please enter the passphrase for the backup encryption."
|
||||||
|
Reference in New Issue
Block a user