Skip to content

Commit

Permalink
chore: have 'aztec' honour the 'DEBUG' env var (#9413)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad authored Oct 24, 2024
1 parent 09c9ad8 commit 771a2ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aztec-up/bin/.aztec-run
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ while [[ "$#" -gt 0 ]]; do
done

DOCKER_ENV="-e HOME=$HOME"
if ! [ -z "${DEBUG:-}" ] ; then
DOCKER_ENV="-e DEBUG=$DEBUG"
fi
for env in ${ENV_VARS_TO_INJECT:-}; do
# SSH_AUTH_SOCK must be handled separately
if [[ $env != "SSH_AUTH_SOCK" ]] && [[ -n "${!env:-}" ]]; then
Expand Down Expand Up @@ -154,4 +157,4 @@ docker run \
${DOCKER_ENV:-} \
${DOCKER_HOST_BINDS:-} \
${DOCKER_USER:-} \
$IMAGE:$VERSION ${preserved_args[@]:-}
$IMAGE:$VERSION ${preserved_args[@]:-}

0 comments on commit 771a2ac

Please sign in to comment.