diff --git a/scripts/lib.sh b/scripts/lib.sh index f243f99c7..56b8e3764 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -53,7 +53,7 @@ LOCAL_ADDR=common ping -c 1 ipinfo.io > /dev/null 2>&1 if [ "$?" == "0" ];then CN=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") - if [ -z $CN ];then + if [ -z "$CN" ];then LOCAL_ADDR=cn HTTP_PREFIX="https://ghproxy.com/" fi