We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 242f46e commit 2a4bb65Copy full SHA for 2a4bb65
scripts/version.sh
@@ -43,7 +43,7 @@ if ! [[ ${remote_url} =~ [@/]github.com ]] && ! [[ ${remote_url} =~ [:/]coder/co
43
else
44
current_commit=$(git rev-parse HEAD)
45
# 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)
+ last_tag=$(git tag --contains "$current_commit" --sort=version:refname | head -n 1)
47
# If there is no tag that contains the current commit,
48
# get the latest tag sorted by semver.
49
if [[ -z "${last_tag}" ]]; then
0 commit comments