[Update.sh] Increased Timeout for online status check
This commit is contained in:
parent
13175b4e6c
commit
83bd66db98
@ -5,7 +5,7 @@
|
|||||||
check_online_status() {
|
check_online_status() {
|
||||||
CHECK_ONLINE_DOMAINS=('https://github.com' 'https://hub.docker.com')
|
CHECK_ONLINE_DOMAINS=('https://github.com' 'https://hub.docker.com')
|
||||||
for domain in "${CHECK_ONLINE_DOMAINS[@]}"; do
|
for domain in "${CHECK_ONLINE_DOMAINS[@]}"; do
|
||||||
if timeout 3 curl --head --silent --output /dev/null ${domain}; then
|
if timeout 6 curl --head --silent --output /dev/null ${domain}; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user