From e9eab63e994dc196bac0d2e2975daccc1bd35ea5 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 15 Sep 2023 13:24:19 +0800 Subject: [PATCH] update --- scripts/update.sh | 4 ++-- scripts/update_dev.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index 2d646237d..33c58ed19 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -60,9 +60,9 @@ 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/" + HTTP_PREFIX="https://ghproxy.com/" fi echo "local:${LOCAL_ADDR}" diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index be166efb2..b241a5598 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -66,9 +66,9 @@ 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/" + HTTP_PREFIX="https://ghproxy.com/" fi echo "local:${LOCAL_ADDR}"