Explorar el Código

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

Zaiming (Stone) Shi hace 3 años
padre
commit
bec0504f3a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg-vsn.sh

+ 1 - 1
pkg-vsn.sh

@@ -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)"