Update entrypoint.sh

This commit is contained in:
tavplubix 2022-04-20 21:38:49 +03:00 committed by GitHub
parent f9faadcfee
commit 2d34d46b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,11 +15,11 @@ fi
# current curl version options.
function curl_with_retry
{
for _ in 1 2 3 4; do
for _ in 1 2 3 4 5 6 7 8 9 10; do
if curl --fail --head "$1";then
return 0
else
sleep 0.5
sleep 1
fi
done
return 1