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

chore: respect PKG_VSN in pkg-vsn.sh
This commit is contained in:
Ivan Dyachkov 2022-10-05 15:45:16 +02:00 committed by GitHub
commit 8003cbae34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

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