Browse Source

Prepend a 'v' when version is not 'latest' and lacks a leading 'v'. Partially addresses #403

Benjamin Sherman 3 years ago
parent
commit
6495c8695d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/netclient-install.sh

+ 1 - 0
scripts/netclient-install.sh

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