2
0
Fork 0

sh.zio.backup: fix error not being captured

main
Ducky 2024-03-30 16:55:59 +00:00
parent 6a9219c3b4
commit 3b677d0816
1 changed files with 2 additions and 0 deletions

View File

@ -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