Update install-release.sh (#1705)

Update install-release.sh
pull/1708/head
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
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