更新 sa.sh
This commit is contained in:
parent
0bda3f9203
commit
644f2880d0
9
sa.sh
9
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user