Fix inaccurate counter in restic-job script
This commit is contained in:
parent
838d9b00dd
commit
6a55359d28
@ -111,7 +111,9 @@ until [ $counter -eq "$MAX_ATTEMPTS" ] || [ $rc -eq 0 ]; do
|
||||
|
||||
rc=$?
|
||||
|
||||
if [ $rc -ne 0 ]; then
|
||||
if [ $rc -eq 0 ]; then
|
||||
break
|
||||
else
|
||||
sleep=$((counter * 5))
|
||||
printf "sleeping for %d seconds (%d)\n" $sleep $counter
|
||||
sleep $sleep
|
||||
|
Loading…
Reference in New Issue
Block a user