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:
commit
80b4313f00
|
@ -85,7 +85,7 @@ RELEASE="$(grep -E "define.+${RELEASE_EDITION}" apps/emqx/include/emqx_release.h
|
||||||
git_exact_vsn() {
|
git_exact_vsn() {
|
||||||
local tag
|
local tag
|
||||||
tag="$(git describe --tags --match "${GIT_TAG_PREFIX}*" --exact 2>/dev/null)"
|
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)"
|
GIT_EXACT_VSN="$(git_exact_vsn)"
|
||||||
|
|
Loading…
Reference in New Issue