2
0
Fork 0

sh.zio.backup: add prototyping

main
Ducky 2024-03-30 16:52:06 +00:00
parent f683715663
commit 6a9219c3b4
1 changed files with 3 additions and 3 deletions

View File

@ -88,12 +88,10 @@ function invoke_restic() {
--repo "$(cat $restic_repo_file)" \
$command $args 2>&1 | tee /dev/fd/3)"
echo "------"
echo "$restic_out"
if [[ $? == 0 ]]; then
break
else
echo "---- THE OUTPUT: $restic_out"
if [[ $attempts == 0 ]]; then
say warning "Command failed. No attempts left"
break
@ -103,6 +101,8 @@ function invoke_restic() {
sleep $attempts_delay
fi
fi
exec 3>&-
done
fi
}