Skip to content

Commit

Permalink
Merge pull request #14 from Bandwidth/SWI-4080
Browse files Browse the repository at this point in the history
SWI-4080: Using POSIX complaint way to determine first char
  • Loading branch information
rdinardi-bw authored Oct 7, 2024
2 parents fc228fa + 12e6ca0 commit b3bd0bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vault-shim-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b3bd0bc

Please sign in to comment.