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

This commit is contained in:
Benjamin Sherman 2021-10-31 09:58:45 -05:00
parent 54788f3f6d
commit 6495c8695d

View file

@ -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