install.sh: update gh url

This commit is contained in:
Bard 2024-01-17 18:47:35 +08:00 committed by GitHub
parent a073a03391
commit 169ae0510c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ country_code=$(echo $ip_info | sed -r 's/.*country_code":"([^"]*).*/\1/')
if [ $country_code = "CN" ]; then if [ $country_code = "CN" ]; then
google_status=$(curl -I -4 -m 3 -o /dev/null -s -w %{http_code} http://www.google.com/generate_204) google_status=$(curl -I -4 -m 3 -o /dev/null -s -w %{http_code} http://www.google.com/generate_204)
if [ ! $google_status = "204" ];then if [ ! $google_status = "204" ];then
mirror="https://github.cooluc.com/" mirror="https://gh.cooluc.com/"
fi fi
fi fi