sh.zio.backup: add prototyping
parent
c94f4c8584
commit
6ad78d4e2c
|
@ -81,12 +81,15 @@ function invoke_restic() {
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
exec 3>&1
|
exec 3>&1
|
||||||
|
|
||||||
restic_out="$("$restic_path" \
|
restic_out="$("$restic_path" \
|
||||||
--cache-dir "$cache_dir" \
|
--cache-dir "$cache_dir" \
|
||||||
--password-file "$restic_repo_passwd_file" \
|
--password-file "$restic_repo_passwd_file" \
|
||||||
--repo "$(cat $restic_repo_file)" \
|
--repo "$(cat $restic_repo_file)" \
|
||||||
$command $args | tee /dev/fd/3)"
|
$command $args | tee /dev/fd/3)"
|
||||||
|
|
||||||
|
echo "------"
|
||||||
|
echo "$restic_out"
|
||||||
|
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue