From be43b537cceffd0578520a6072a49ad9b29f14bd Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 15 Sep 2023 13:23:28 +0800 Subject: [PATCH] Update install.sh --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index c1635a95a..d4835ce10 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -70,7 +70,7 @@ fi HTTP_PREFIX="https://" LOCAL_ADDR=common cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") -if [ ! -z "$cn" ] || [ "$?" != "0" ] ;then +if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then LOCAL_ADDR=cn HTTP_PREFIX="https://ghproxy.com/" fi