Merge pull request #7357 from zmstone/chore-pkg-vsn-delete-git-tag-prefix

chore: fix pkg-vsn.sh, delete git tag prefix in the right way
This commit is contained in:
Xinyu Liu 2022-03-21 21:34:25 +08:00 committed by GitHub
commit 80b4313f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ RELEASE="$(grep -E "define.+${RELEASE_EDITION}" apps/emqx/include/emqx_release.h
git_exact_vsn() {
local tag
tag="$(git describe --tags --match "${GIT_TAG_PREFIX}*" --exact 2>/dev/null)"
echo "${tag//^[v|e]/}"
echo "${tag#[v|e]}"
}
GIT_EXACT_VSN="$(git_exact_vsn)"