Using github for check internet

This commit is contained in:
Alex Epstein 2017-08-01 22:39:24 -04:00
parent 2f007ecb1d
commit a5fdff610c
16 changed files with 16 additions and 16 deletions

View File

@ -40,7 +40,7 @@ httpGet()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
update() update()

View File

@ -37,7 +37,7 @@ httpGet()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
update() update()

View File

@ -158,7 +158,7 @@ checkAmount()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
## Grabs the exchange rate and does the math for converting the currency ## Grabs the exchange rate and does the math for converting the currency

View File

@ -130,7 +130,7 @@ checkAmount()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
## Grabs the exchange rate and does the math for converting the currency ## Grabs the exchange rate and does the math for converting the currency

View File

@ -40,7 +40,7 @@ httpGet()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
update() update()

View File

@ -173,7 +173,7 @@ update() {
} }
checkInternet() { checkInternet() {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
# Option parsing "controller" # Option parsing "controller"

View File

@ -58,7 +58,7 @@ fi
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
## This function grabs information about a movie and using python parses the ## This function grabs information about a movie and using python parses the

View File

@ -37,7 +37,7 @@ httpGet()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }

View File

@ -91,7 +91,7 @@ makeMultiLineQr()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
usage() usage()

View File

@ -59,7 +59,7 @@ fi
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
update() update()

View File

@ -99,7 +99,7 @@ EOF
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
checkCiphers() checkCiphers()

View File

@ -57,7 +57,7 @@ fi
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
## This function grabs information about a stock and using python parses the ## This function grabs information about a stock and using python parses the

View File

@ -61,7 +61,7 @@ fi
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
update() update()

View File

@ -83,7 +83,7 @@ addTask()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
removeTask() removeTask()

View File

@ -56,7 +56,7 @@ getLocationWeather()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
update() update()

View File

@ -39,7 +39,7 @@ httpGet()
checkInternet() checkInternet()
{ {
httpGet google.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request httpGet github.com > /dev/null 2>&1 || { echo "Error: no active internet connection" >&2; return 1; } # query google with a get request
} }
update() update()