Skip to content

Commit c13f0b3

Browse files
authored
Simplify stripping "v" from version
Suggested by shellcheck https://github.com/koalaman/shellcheck/wiki/SC2001
1 parent 9892395 commit c13f0b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ echo "ℹ︎ SLUG is $SLUG"
2828

2929
# Does it even make sense for VERSION to be editable in a workflow definition?
3030
if [[ -z "$VERSION" ]]; then
31-
VERSION=${GITHUB_REF#refs/tags/}
32-
VERSION=$(echo $VERSION | sed -e "s/^v//")
31+
VERSION="${GITHUB_REF#refs/tags/}"
32+
VERSION="${VERSION#v}"
3333
fi
3434
echo "ℹ︎ VERSION is $VERSION"
3535

0 commit comments

Comments
 (0)