From 644f2880d03ceb04c54f5431e0f9f43ebe550f05 Mon Sep 17 00:00:00 2001 From: asdf88 Date: Mon, 30 Sep 2024 00:44:30 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20sa.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sa.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sa.sh b/sa.sh index 8e40d69..b4cd541 100644 --- a/sa.sh +++ b/sa.sh @@ -154,14 +154,7 @@ getVersion() { NEW_VER_V="$(normalizeVersion "$(curl -s "${TAG_URL}" --connect-timeout 10| grep -Eo '\"tag_name\"(.*?)\",' | cut -d\" -f4)")" NEW_VER=`curl -s "${TAG_URL}" --connect-timeout 10| grep -Eo '\"tag_name\"(.*?)\",' | cut -d\" -f4 | awk -F 'v' '{print $2}'` - if [[ $? -ne 0 ]] || [[ $NEW_VER_V == "" ]]; then - colorEcho $RED " 检查Sing-Box版本信息失败,请检查网络" - return 3 - elif [[ $RETVAL -ne 0 ]];then - return 2 - elif [[ $NEW_VER_V != $CUR_VER ]];then - return 1 - fi + return 0 }