chore: fix pkg-vsn.sh, delete git tag prefix in the right way

This commit is contained in:
Zaiming (Stone) Shi 2022-03-21 14:31:24 +01:00
parent ecf4d4b206
commit bec0504f3a
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() { 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)"