From 76af3ea174b5a51d96d189f2f1aa03a5fe22dc4d Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Tue, 9 Oct 2018 15:02:09 +0800 Subject: [PATCH] =?UTF-8?q?install-release.sh=E6=A3=80=E6=9F=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=97=B6=E5=BF=BD=E7=95=A5=E5=B0=8F=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release/install-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/install-release.sh b/release/install-release.sh index 452e2484..96c576ca 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -193,7 +193,7 @@ getVersion(){ else VER=`/usr/bin/v2ray/v2ray -version 2>/dev/null` RETVAL="$?" - CUR_VER=`echo $VER | head -n 1 | cut -d " " -f2` + CUR_VER=`echo $VER | head -n 1 | cut -d " " -f2 | cut -d. -f-2` TAG_URL="https://api.github.com/repos/v2ray/v2ray-core/releases/latest" NEW_VER=`curl ${PROXY} -s ${TAG_URL} --connect-timeout 10| grep 'tag_name' | cut -d\" -f4` if [[ $? -ne 0 ]] || [[ $NEW_VER == "" ]]; then