fix missing quotes around repo & passwd variables

This commit is contained in:
Nicolas KAROLAK 2018-06-06 10:16:13 +02:00 committed by Jerome Charaoui
parent ca028e1959
commit 3103b6bf32

View File

@ -45,12 +45,12 @@ getconf google_application_credentials
### SANITY CHECKS ############################################################## ### SANITY CHECKS ##############################################################
[ -n "$repository" ] \ [ -n "$repository" ] \
&& export RESTIC_REPOSITORY=$repository \ && export RESTIC_REPOSITORY="$repository" \
&& debug "The restic repository is: $repository" \ && debug "The restic repository is: $repository" \
|| fatal "The repo option must be set." || fatal "The repo option must be set."
[ -n "$password" ] \ [ -n "$password" ] \
&& export RESTIC_PASSWORD=$password \ && export RESTIC_PASSWORD="$password" \
&& debug "The restic password is set." \ && debug "The restic password is set." \
|| fatal "The password option must be set." || fatal "The password option must be set."
@ -309,7 +309,6 @@ if [[ "$check" == "yes" ]]; then
setsection check setsection check
getconf flag getconf flag
done
# format command # format command
cmd="restic check $flag" cmd="restic check $flag"