Browse Source

Merge branch 'master' of https://github.com/v2ray/v2ray-core

pull/1469/head
Darien Raymond 6 years ago
parent
commit
867135d85a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 4
      release/install-release.sh

4
release/install-release.sh

@ -197,7 +197,7 @@ getVersion(){
else
VER=`/usr/bin/v2ray/v2ray -version 2>/dev/null`
RETVAL="$?"
CUR_VER=`echo $VER | head -n 1 | cut -d " " -f2 | cut -d. -f-2`
CUR_VER=`echo $VER | head -n 1 | cut -d " " -f2`
if [[ ${CUR_VER} != v* ]]; then
CUR_VER=v${CUR_VER}
fi
@ -211,7 +211,7 @@ getVersion(){
return 3
elif [[ $RETVAL -ne 0 ]];then
return 2
elif [[ "$NEW_VER" != "$CUR_VER" ]];then
elif [[ `echo $NEW_VER | cut -d. -f-2` != `echo $CUR_VER | cut -d. -f-2` ]];then
return 1
fi
return 0

Loading…
Cancel
Save