From 89c529f44cb95b2c2ea5b108f3740711884bf165 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 9 Sep 2023 11:28:53 +0800 Subject: [PATCH] Update install_dev.sh --- scripts/install_dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 04a99033e..87c981771 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -71,7 +71,7 @@ fi cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") HTTP_PREFIX="https://" LOCAL_ADDR=common -if [ ! -z "$cn" ];then +if [ ! -z "$cn" ] && [ "$?" != "0" ];then LOCAL_ADDR=cn HTTP_PREFIX="https://ghproxy.com/" fi