1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

Update install-release.sh (#1705)

Update install-release.sh
This commit is contained in:
Kslr 2019-05-28 22:55:12 +08:00 committed by GitHub
commit 46ba7cde53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,7 @@ getVersion(){
return 3
elif [[ $RETVAL -ne 0 ]];then
return 2
elif [[ `echo $NEW_VER | cut -d. -f-2` != `echo $CUR_VER | cut -d. -f-2` ]];then
elif [[ $NEW_VER != $CUR_VER ]];then
return 1
fi
return 0
@ -430,7 +430,7 @@ main(){
getVersion
RETVAL="$?"
if [[ $RETVAL == 0 ]] && [[ "$FORCE" != "1" ]]; then
colorEcho ${BLUE} "Latest version ${NEW_VER} is already installed."
colorEcho ${BLUE} "Latest version ${CUR_VER} is already installed."
if [[ "${ERROR_IF_UPTODATE}" == "1" ]]; then
return 10
fi