Explorar el Código

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

chore: respect PKG_VSN in pkg-vsn.sh
Ivan Dyachkov hace 3 años
padre
commit
8003cbae34
Se han modificado 1 ficheros con 6 adiciones y 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"