Commit 0ced67ed authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Merge pull request #12 from cztian/patch-1

Fixing Internet Connection Error
parents 1dcaebe7 c6346e3f
......@@ -22,7 +22,7 @@ fi
#-----------------------------------------------------------------------------------------------------------------------------------------#
# 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
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."
......@@ -90,4 +90,4 @@ do
;;
esac
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