From adb57c5055ec817985d7e8cf8d576f26c8e32796 Mon Sep 17 00:00:00 2001 From: ludamad Date: Thu, 24 Oct 2024 13:20:23 -0400 Subject: [PATCH] chore: have 'aztec' honour the 'DEBUG' env var --- aztec-up/bin/.aztec-run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aztec-up/bin/.aztec-run b/aztec-up/bin/.aztec-run index 379eb6e3963..a7ab48a5313 100755 --- a/aztec-up/bin/.aztec-run +++ b/aztec-up/bin/.aztec-run @@ -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 @@ -154,4 +157,4 @@ docker run \ ${DOCKER_ENV:-} \ ${DOCKER_HOST_BINDS:-} \ ${DOCKER_USER:-} \ - $IMAGE:$VERSION ${preserved_args[@]:-} \ No newline at end of file + $IMAGE:$VERSION ${preserved_args[@]:-}