diff --git a/vault-shim-installer.sh b/vault-shim-installer.sh index 1fed875..1e6bc33 100755 --- a/vault-shim-installer.sh +++ b/vault-shim-installer.sh @@ -7,7 +7,8 @@ if [ -z "$version" ]; then fi # check if the version starts without a 'v', if so, add it -if [ "${version:0:1}" != "v" ]; then +firstchar="$(echo $version | cut -c1-1)" +if [ "$firstchar" != "v" ]; then version="v$version" fi