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 }