fix retry increment

This commit is contained in:
Gustavo Trott 2024-10-24 16:51:11 -03:00
parent 34d1e14667
commit 4bfc5a3592

View File

@ -62,7 +62,7 @@ while [[ $retry_count -lt $max_retries ]]; do
break
else
echo "Failed to pull Docker image, attempt $((retry_count+1))/$max_retries."
((retry_count++))
retry_count=$((retry_count+1))
if [[ $retry_count -lt $max_retries ]]; then
echo "Waiting for $retry_wait seconds before retrying..."
sleep $retry_wait