Avoid exit on error running
This commit is contained in:
parent
67dac35176
commit
34d1e14667
@ -57,7 +57,7 @@ max_retries=5
|
|||||||
retry_wait=300 # wait time in seconds (5 minutes)
|
retry_wait=300 # wait time in seconds (5 minutes)
|
||||||
|
|
||||||
while [[ $retry_count -lt $max_retries ]]; do
|
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."
|
echo "Docker image pulled successfully."
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user