mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
fix version begin with v
This commit is contained in:
@@ -175,6 +175,9 @@ extract(){
|
||||
getVersion(){
|
||||
if [[ -n "$VERSION" ]]; then
|
||||
NEW_VER="$VERSION"
|
||||
if [[ ${NEW_VER} != v* ]]; then
|
||||
NEW_VER=v${NEW_VER}
|
||||
fi
|
||||
return 4
|
||||
else
|
||||
VER=`/usr/bin/v2ray/v2ray -version 2>/dev/null`
|
||||
|
||||
Reference in New Issue
Block a user