chore: fix shellcheck

This commit is contained in:
Zaiming (Stone) Shi 2022-03-24 12:28:34 +01:00
parent 3944888a19
commit b8afa16b53
1 changed files with 2 additions and 5 deletions

View File

@ -16,15 +16,12 @@ cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
PROFILE="${1:-}" PROFILE="${1:-}"
case "$PROFILE" in case "$PROFILE" in
emqx-ee) emqx-ee)
DIR='enterprise'
TAG_PREFIX='e' TAG_PREFIX='e'
;; ;;
emqx) emqx)
DIR='broker'
TAG_PREFIX='v' TAG_PREFIX='v'
;; ;;
emqx-edge) emqx-edge)
DIR='edge'
TAG_PREFIX='v' TAG_PREFIX='v'
;; ;;
*) *)
@ -86,9 +83,9 @@ fi
pushd "${PREV_DIR_BASE}/${PREV_TAG}" pushd "${PREV_DIR_BASE}/${PREV_TAG}"
git reset --hard git reset --hard
git checkout ${PREV_TAG} git checkout "${PREV_TAG}"
make clean-all make clean-all
make $PROFILE make "$PROFILE"
popd popd
PREV_REL_DIR="${PREV_DIR_BASE}/${PREV_TAG}/_build/${PROFILE}/lib" PREV_REL_DIR="${PREV_DIR_BASE}/${PREV_TAG}/_build/${PROFILE}/lib"