diff --git a/update.sh b/update.sh index 7fc65578..a503d574 100755 --- a/update.sh +++ b/update.sh @@ -260,7 +260,7 @@ for option in ${CONFIG_ARRAY[@]}; do done echo -en "Checking internet connection... " -curl -o /dev/null 1.1.1.1 -sm3 +timeout 3 ping -c 1 8.8.8.8 > /dev/null if [[ $? != 0 ]]; then echo -e "\e[31mfailed\e[0m" exit 1