Update install-release.sh

46ba7cde53
pull/2141/head
Kslr 2019-06-03 15:04:58 +08:00
parent 48f5e7e76b
commit 94ac104ffd
1 changed files with 2 additions and 2 deletions

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