Test connection

-replace google.com by apple.com
This commit is contained in:
2024-05-14 07:04:20 +02:00
parent 40040c264b
commit dc4764c832
7 changed files with 15 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ list=$(pipx list --include-injected) # pipx list --quiet
echo -e "\n${underline}List installed packages:${reset}"
echo "$list"
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 !"