Added additional Check for Docker Hub
This commit is contained in:
parent
a6a7ab45f8
commit
0b00f15811
@ -3,7 +3,7 @@
|
|||||||
############## Begin Function Section ##############
|
############## Begin Function Section ##############
|
||||||
|
|
||||||
check_online_status() {
|
check_online_status() {
|
||||||
CHECK_ONLINE_DOMAINS=('https://github.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 3 curl --head --silent --output /dev/null ${domain}; then
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user