Explorar o código

Merge pull request #9089 from emqx/chore-always-respect-PKG_VSN

chore: respect PKG_VSN in pkg-vsn.sh
Ivan Dyachkov %!s(int64=3) %!d(string=hai) anos
pai
achega
8003cbae34
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      pkg-vsn.sh

+ 6 - 0
pkg-vsn.sh

@@ -73,6 +73,12 @@ while [ "$#" -gt 0 ]; do
   esac
 done
 
+# return immediately if version is already set
+if [[ "${PKG_VSN:-novalue}" != novalue && "${LONG_VERSION:-novalue}" != 'yes' ]]; then
+    echo "$PKG_VSN"
+    exit 0
+fi
+
 case "${PROFILE}" in
     *enterprise*)
         RELEASE_EDITION="EMQX_RELEASE_EE"