mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-09 12:22:40 +01:00
fix(restc): avoid word splitting for options
This commit is contained in:
parent
2651c1ccbd
commit
ca5358bc3f
@ -15,7 +15,7 @@ Requirements:
|
|||||||
|
|
||||||
Recommended:
|
Recommended:
|
||||||
|
|
||||||
rdiff-backup duplicity rsync borgbackup gzip hwinfo sfdisk cryptsetup flashrom hwinfo
|
borgbackup cryptsetup duplicity flashrom gzip hwinfo rdiff-backup restic rsync sfdisk
|
||||||
|
|
||||||
To install backupninja, simply do the following:
|
To install backupninja, simply do the following:
|
||||||
|
|
||||||
|
@ -75,8 +75,9 @@ function run_cmd {
|
|||||||
while [ $pass -lt $retry_run ]; do
|
while [ $pass -lt $retry_run ]; do
|
||||||
(( pass++ ))
|
(( pass++ ))
|
||||||
debug "Attempt $pass"
|
debug "Attempt $pass"
|
||||||
|
info "Running command in a subshell. This may take a while..."
|
||||||
# return when cmd succeeded, pass when failed
|
# return when cmd succeeded, pass when failed
|
||||||
$cmd && return 0 || :
|
eval $cmd && return 0 || :
|
||||||
sleep $retry_wait
|
sleep $retry_wait
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -126,7 +127,7 @@ function run_cmd {
|
|||||||
cmd_global_options+="--no-lock "
|
cmd_global_options+="--no-lock "
|
||||||
|
|
||||||
[ -n "$option" ] && \
|
[ -n "$option" ] && \
|
||||||
cmd_global_options+="$(for i in $option; do echo "--option $i "; done)"
|
cmd_global_options+="$(for i in "${option[@]}"; do echo "--option $i "; done)"
|
||||||
|
|
||||||
[ -n "$quiet" ] && \
|
[ -n "$quiet" ] && \
|
||||||
cmd_global_options+="--quiet "
|
cmd_global_options+="--quiet "
|
||||||
|
Loading…
Reference in New Issue
Block a user