更新 sa.sh

This commit is contained in:
asdf88 2024-09-30 00:44:30 +00:00
parent 0bda3f9203
commit 644f2880d0

9
sa.sh
View File

@ -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
}