sh.zio.backup: fix error not being captured
parent
6a9219c3b4
commit
3b677d0816
|
@ -80,6 +80,7 @@ function invoke_restic() {
|
|||
attempts_delay=600
|
||||
|
||||
while true; do
|
||||
set -o pipefail
|
||||
exec 3>&1
|
||||
|
||||
restic_out="$("$restic_path" \
|
||||
|
@ -102,6 +103,7 @@ function invoke_restic() {
|
|||
fi
|
||||
fi
|
||||
|
||||
set +o pipefail
|
||||
exec 3>&-
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue