Skip to content

Commit 2a4bb65

Browse files
Update version.sh
Co-authored-by: Dean Sheather <dean@deansheather.com>
1 parent 242f46e commit 2a4bb65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if ! [[ ${remote_url} =~ [@/]github.com ]] && ! [[ ${remote_url} =~ [:/]coder/co
4343
else
4444
current_commit=$(git rev-parse HEAD)
4545
# Try to find the last tag that contains the current commit
46-
last_tag=$(git tag --contains ${current_commit} --sort=version:refname | head -n 1)
46+
last_tag=$(git tag --contains "$current_commit" --sort=version:refname | head -n 1)
4747
# If there is no tag that contains the current commit,
4848
# get the latest tag sorted by semver.
4949
if [[ -z "${last_tag}" ]]; then

0 commit comments

Comments
 (0)