mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
fix missing quotes around repo & passwd variables
This commit is contained in:
parent
ca028e1959
commit
3103b6bf32
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user