Update init_root.sh

This commit is contained in:
Nano Zheng 2023-07-16 18:13:22 +00:00
parent 4f81bcbf6d
commit e8c4a634a8

View File

@ -21,12 +21,12 @@ check_google_access() {
local response=$(curl -s -o /dev/null -w "%{http_code}" -m 5 "http://www.google.com") local response=$(curl -s -o /dev/null -w "%{http_code}" -m 5 "http://www.google.com")
if [ "$response" -eq 200 ]; then if [ "$response" -eq 200 ]; then
echo "Internet: abroad"
abroad=1 abroad=1
echo "Internet: abroad"
github="https://github.com" github="https://github.com"
else else
echo "Internet: internal"
abroad=0 abroad=0
echo "Internet: internal"
github="https://g.nano.ac/https://github.com" github="https://g.nano.ac/https://github.com"
fi fi
} }