chore: respect PKG_VSN in pkg-vsn.sh

This commit is contained in:
Ivan Dyachkov 2022-10-03 17:37:09 +02:00
parent 09500f1f45
commit bc71149d79
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,12 @@ while [ "$#" -gt 0 ]; do
esac esac
done 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 case "${PROFILE}" in
*enterprise*) *enterprise*)
RELEASE_EDITION="EMQX_RELEASE_EE" RELEASE_EDITION="EMQX_RELEASE_EE"