Browse Source

Update install-release.sh

https://github.com/v2ray/v2ray-core/commit/46ba7cde5329af8dc783440821dd77db67fad2f0
Kslr 6 years ago
parent
commit
94ac104ffd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      release/install-release.sh

+ 2 - 2
release/install-release.sh

@@ -220,7 +220,7 @@ getVersion(){
             return 3
             return 3
         elif [[ $RETVAL -ne 0 ]];then
         elif [[ $RETVAL -ne 0 ]];then
             return 2
             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
             return 1
         fi
         fi
         return 0
         return 0
@@ -430,7 +430,7 @@ main(){
         getVersion
         getVersion
         RETVAL="$?"
         RETVAL="$?"
         if [[ $RETVAL == 0 ]] && [[ "$FORCE" != "1" ]]; then
         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
             if [[ "${ERROR_IF_UPTODATE}" == "1" ]]; then
               return 10
               return 10
             fi
             fi