Test connection
-replace google.com by apple.com
This commit is contained in:
@@ -11,7 +11,7 @@ reset="\033[0m"
|
||||
|
||||
echo -e "\n${bold}🦀 Rust${reset}\n"
|
||||
|
||||
curl -Is http://www.google.com | head -1 | grep 200 1>/dev/null
|
||||
curl -Is https://www.apple.com | head -1 | grep 200 1>/dev/null
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo -e "\n${red}No Internet connection !${reset}"
|
||||
echo -e "Exit !"
|
||||
|
||||
Reference in New Issue
Block a user