Commit c6346e3f authored by Cai Zhaotian's avatar Cai Zhaotian Committed by GitHub
Browse files

Fixing Internet Connection Error

The site google.com, is unavailable (blocked) in many countries. So change it to github.com
parent 1dcaebe7
...@@ -22,7 +22,7 @@ fi ...@@ -22,7 +22,7 @@ fi
#-----------------------------------------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------------------------#
# check if we have internet connection to install dependencies # check if we have internet connection to install dependencies
# #
echo -e "GET http://google.com HTTP/1.0\n\n" | nc google.com 80 > /dev/null 2>&1 echo -e "GET http://github.com HTTP/1.0\n\n" | nc github.com 80 > /dev/null 2>&1
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
read -n 1 -s -p "Warning. Configurator can't work properly without internet connection. \ read -n 1 -s -p "Warning. Configurator can't work properly without internet connection. \
Press CTRL C to stop to stop or any key to ignore and continue." Press CTRL C to stop to stop or any key to ignore and continue."
...@@ -90,4 +90,4 @@ do ...@@ -90,4 +90,4 @@ do
;; ;;
esac esac
done done
#-----------------------------------------------------------------------------------------------------------------------------------------# #-----------------------------------------------------------------------------------------------------------------------------------------#
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment