inject environment variables to dockerized in a proper way
@@ -146,7 +146,8 @@ fi
# Run the command
test -t 1 && USE_TTY="-it"
-if ! $KUBEVIRT_CRI exec ${USE_TTY} ${BUILDER}-bazel-server /entrypoint.sh "KUBEVIRT_CRI=${KUBEVIRT_CRI} && $@"; then
+EXEC_ENV_VARS="--env KUBEVIRT_CRI=${KUBEVIRT_CRI}"
+if ! $KUBEVIRT_CRI exec $EXEC_ENV_VARS ${USE_TTY} ${BUILDER}-bazel-server /entrypoint.sh "$@"; then
# Copy the build output out of the container, make sure that _out exactly matches the build result
if [ "$SYNC_OUT" = "true" ]; then
_rsync --delete "rsync://root@127.0.0.1:${RSYNCD_PORT}/out" ${OUT_DIR}
