Merge pull request #53 from carnei-ro/fix/sysupgrade

fix(sysupgrade): use curl instead ping - icmp not always available
pull/55/head
Igor Zalatov 2021-08-30 21:07:14 +03:00 committed by GitHub
commit 5b25730224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ quick_reboot() {
if ! ping -q -c 3 -w 3 github.com >/dev/null 2>&1; then
if [ "$(curl -o /dev/null -s -w '%{http_code}\n' http://github.com)" != "301" ]; then
echo -e "\n\e[1;31mThere is no access to the github.com, please check the Internet connection...\e[0m\n"
exit 1
else