Skip to content

Commit

Permalink
Update install-release.sh
Browse files Browse the repository at this point in the history
由于稳定版本在版本末尾加.0了,所以检查更新的逻辑需要修改了
  • Loading branch information
sunshineplan authored Nov 26, 2018
1 parent 45fbf6f commit 34373cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 34373cc

Please sign in to comment.