From bec0504f3a15926dc2046bc5c4b838a9dc1dbfc2 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Mon, 21 Mar 2022 14:31:24 +0100 Subject: [PATCH] chore: fix pkg-vsn.sh, delete git tag prefix in the right way --- pkg-vsn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg-vsn.sh b/pkg-vsn.sh index ddcf5abe0..d0bcb6b93 100755 --- a/pkg-vsn.sh +++ b/pkg-vsn.sh @@ -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)"