Skip to content

Commit

Permalink
feat: generalized buildenv EXTRA_DIR -> EXTRA_ARGS (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
demo-exe authored Jan 30, 2024
1 parent 5bfcb66 commit a120bd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/buildenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cd "$(dirname "${BASH_SOURCE}")/.."
: ${BUILD_TYPE:=debug}
: ${DEV_IMAGE:=${VPP_IMAGE_BASE}_dev_${BUILD_TYPE}}
: ${VPP_SRC:=}
: ${UPG_BUILDENV_EXTRA_DIR:=}
: ${UPG_BUILDENV_EXTRA_ARGS:=}
: ${DEVENV_BG:=}

if [[ ${GITHUB_RUN_ID:-} ]]; then
Expand All @@ -44,8 +44,8 @@ function docker_buildenv {
opts+=(-it)
fi

if [[ ${UPG_BUILDENV_EXTRA_DIR:=} ]]; then
opts+=(-v "${UPG_BUILDENV_EXTRA_DIR}:${UPG_BUILDENV_EXTRA_DIR}")
if [[ ${UPG_BUILDENV_EXTRA_ARGS:=} ]]; then
opts+=(${UPG_BUILDENV_EXTRA_ARGS})
fi

if [[ ${VPP_SRC} ]]; then
Expand Down

0 comments on commit a120bd4

Please sign in to comment.