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

@@ -152,7 +152,7 @@ get_info_pkg() {
echo -e "${bold}🍺 Homebrew ${reset}" echo -e "${bold}🍺 Homebrew ${reset}"
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 if [[ $? -eq 1 ]]; then
echo -e "\n${red}No Internet connection !${reset}" echo -e "\n${red}No Internet connection !${reset}"
echo -e "Exit !" echo -e "Exit !"
@@ -504,6 +504,11 @@ echo -e "\n🍺 ${underline}The Doc is checking that everything is ok...${reset}
brew doctor brew doctor
echo "python-cryptography required by certbot"
echo "python-certifi required by certbot and yt-dlp"
echo "numpy required ffmpeg and openvin"
# suprimer: python-packaging python-argcomplete
brew missing brew missing
status=$? status=$?
if [ $status -ne 0 ]; then brew missing --verbose; fi if [ $status -ne 0 ]; then brew missing --verbose; fi

View File

@@ -94,7 +94,7 @@ fi
pecl version pecl version
curl -Is http://www.google.com | head -1 | grep 200 curl -Is https://www.apple.com | head -1 | grep 200
if [[ $? -eq 1 ]]; then if [[ $? -eq 1 ]]; then
echo -e "\n${red}No Internet connection !${reset}" echo -e "\n${red}No Internet connection !${reset}"
echo -e "Exit !" echo -e "Exit !"

View File

@@ -57,7 +57,7 @@ else
fi fi
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 if [[ $? -eq 1 ]]; then
echo -e "\n${red}No Internet connection !${reset}" echo -e "\n${red}No Internet connection !${reset}"
echo -e "Exit !" echo -e "Exit !"

View File

@@ -33,7 +33,7 @@ user=""
# Add module to the do_not_update array for prevent to update. # Add module to the do_not_update array for prevent to update.
#declare -a do_not_update=() #declare -a do_not_update=()
#declare -a do_not_update=("parso" "asgiref") #declare -a do_not_update=("parso" "asgiref")
declare -a do_not_update=("geomet") declare -a do_not_update=("pyee")
# #
######################################### #########################################
@@ -78,7 +78,7 @@ if (( ${#do_not_update[@]} )); then
fi fi
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 if [[ $? -eq 1 ]]; then
echo -e "\n${red}No Internet connection !${reset}" echo -e "\n${red}No Internet connection !${reset}"
echo -e "Exit !" echo -e "Exit !"
@@ -130,7 +130,7 @@ if [ -n "$upd" ]; then
# on filtre les lignes (y = asgiref|setuptools|lunr) # on filtre les lignes (y = asgiref|setuptools|lunr)
y=$(echo "$z" | sed 's/.$//' | sed 's/ /|/g') y=$(echo "$z" | sed 's/.$//' | sed 's/ /|/g')
dependencies=$(echo "$x" | xargs pipdeptree -r -p | grep -E $y) dependencies=$(echo "$x" | xargs pipdeptree -r --python /opt/homebrew/opt/python@3.11/bin/python3.11 -p | grep -E $y)
echo -e "" echo -e ""

View File

@@ -40,7 +40,7 @@ list=$(pipx list --include-injected) # pipx list --quiet
echo -e "\n${underline}List installed packages:${reset}" echo -e "\n${underline}List installed packages:${reset}"
echo "$list" 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 if [[ $? -eq 1 ]]; then
echo -e "\n${red}No Internet connection !${reset}" echo -e "\n${red}No Internet connection !${reset}"
echo -e "Exit !" echo -e "Exit !"

View File

@@ -11,7 +11,7 @@ reset="\033[0m"
echo -e "\n${bold}🦀 Rust${reset}\n" 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 if [[ $? -eq 1 ]]; then
echo -e "\n${red}No Internet connection !${reset}" echo -e "\n${red}No Internet connection !${reset}"
echo -e "Exit !" echo -e "Exit !"

View File

@@ -18,7 +18,7 @@ reset="\033[0m"
# Liste des apps: # Liste des apps:
# - le venv doit avoir le même nom que l'app # - le venv doit avoir le même nom que l'app
declare -a apps=("soco-cli" "mkdocs" "streamrip") declare -a apps=("soco-cli" "mkdocs")
# Liste des extensions pour Mkdocs # Liste des extensions pour Mkdocs
mkdocs_ext=("mkdocs-material" "mkdocs-material-extensions" "mkdocs-git-revision-date-localized-plugin" "mkdocs-minify-plugin" "fontawesome_markdown" "mkdocs-pdf-export-plugin") mkdocs_ext=("mkdocs-material" "mkdocs-material-extensions" "mkdocs-git-revision-date-localized-plugin" "mkdocs-minify-plugin" "fontawesome_markdown" "mkdocs-pdf-export-plugin")
@@ -48,6 +48,7 @@ if [[ $? -eq 1 ]]; then
exit 1 exit 1
fi fi
echo -e "Venv directory: $v\n"
################################################################################################ ################################################################################################
for app in ${apps[*]} for app in ${apps[*]}