fix version begin with v

pull/1301/head v3.46.2
Darien Raymond 2018-10-05 22:05:43 +02:00
parent b7e7e4a2b5
commit ce4aee72b6
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,9 @@ extract(){
getVersion(){ getVersion(){
if [[ -n "$VERSION" ]]; then if [[ -n "$VERSION" ]]; then
NEW_VER="$VERSION" NEW_VER="$VERSION"
if [[ ${NEW_VER} != v* ]]; then
NEW_VER=v${NEW_VER}
fi
return 4 return 4
else else
VER=`/usr/bin/v2ray/v2ray -version 2>/dev/null` VER=`/usr/bin/v2ray/v2ray -version 2>/dev/null`