Corrected errors in var assignment to borg repo and passphrase env vars

This commit is contained in:
Asif Bacchus 2018-10-14 14:59:48 -06:00
parent 7ed19690e5
commit cf6af2c01f

View File

@ -513,11 +513,11 @@ if [ -z "${borgConfig[2]}" ]; then
cleanup cleanup
quit quit
else else
export BORG_REPO="{borgConfig[2]}" export BORG_REPO="${borgConfig[2]}"
fi fi
# repo password # repo password
if [ -n "${borgConfig[3]}" ]; then if [ -n "${borgConfig[3]}" ]; then
export BORG_PASSPHRASE="{borgConfig[3]}" export BORG_PASSPHRASE="${borgConfig[3]}"
else else
exitWarn+=('2111') exitWarn+=('2111')
# if the password was omitted by mistake, export a dummy password so borg # if the password was omitted by mistake, export a dummy password so borg