fix(emqx_ctl): ensure env variables are exported

This commit is contained in:
Zaiming Shi 2021-05-11 14:03:26 +02:00 committed by Zaiming (Stone) Shi
parent bb490e7d6e
commit 873459a07f
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ ROOT_DIR="$(cd "$(dirname "$(readlink "$0" || echo "$0")")"/..; pwd -P)"
# shellcheck disable=SC1090
. "$ROOT_DIR"/releases/emqx_vars
export RUNNER_ROOT_DIR
export REL_VSN
# shellcheck disable=SC2012,SC2086
LATEST_VM_ARGS="$(ls -t $RUNNER_DATA_DIR/configs/vm.*.args | head -1)"
if [ -z "$LATEST_VM_ARGS" ]; then