Browse Source

Merge pull request #418 from bsherman/develop

Prepend a 'v' when version is not 'latest' and lacks a leading 'v'.
Alex 3 years ago
parent
commit
1f82ed192a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/netclient-install.sh

+ 1 - 0
scripts/netclient-install.sh

@@ -51,6 +51,7 @@ set -e
 
 
 [ -z "$KEY" ] && KEY=nokey;
 [ -z "$KEY" ] && KEY=nokey;
 [ -z "$VERSION" ] && echo "no \$VERSION provided, fallback to latest" && VERSION=latest;
 [ -z "$VERSION" ] && echo "no \$VERSION provided, fallback to latest" && VERSION=latest;
+[ "latest" != "$VERSION" ] && [ "v" != `echo $VERSION | cut -c1` ] && VERSION="v$VERSION"
 
 
 dist=netclient
 dist=netclient