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