Skip to content

Commit

Permalink
more general
Browse files Browse the repository at this point in the history
  • Loading branch information
demo-exe committed Jan 29, 2024
1 parent 7776315 commit 444fd88
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions hack/buildenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +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_X11:=}
: ${UPG_BUILDENV_EXTRA_ARGS:=}
: ${DEVENV_BG:=}

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

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

if [[ ${UPG_BUILDENV_X11:=} ]]; then
opts+=(-e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix)
if [[ ${UPG_BUILDENV_EXTRA_ARGS:=} ]]; then
opts+=(${UPG_BUILDENV_EXTRA_ARGS})
fi

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

0 comments on commit 444fd88

Please sign in to comment.