Avoid exit on error running

This commit is contained in:
Gustavo Trott 2024-10-24 16:45:08 -03:00
parent 67dac35176
commit 34d1e14667

View File

@ -57,7 +57,7 @@ max_retries=5
retry_wait=300 # wait time in seconds (5 minutes)
while [[ $retry_count -lt $max_retries ]]; do
if sudo docker pull "$DOCKER_IMAGE"; then
if sudo docker pull "$DOCKER_IMAGE" || false; then
echo "Docker image pulled successfully."
break
else