Skip to content

Commit

Permalink
fix(external PR, twt--): update .aztec-run to run in non-interactive …
Browse files Browse the repository at this point in the history
…mode if NON_INTERACTIVE is set to non-zero (#8931)

Thanks twt-- for
#8928.
  • Loading branch information
AztecBot authored Oct 3, 2024
1 parent 95cb977 commit d85a66d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aztec-up/bin/.aztec-run
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,13 @@ if [[ "${ENV_VARS_TO_INJECT:-}" == *"SSH_AUTH_SOCK"* && -n "${SSH_AUTH_SOCK:-}"
fi
fi

docker_opt_interactive=-ti
if [[ -n "${NON_INTERACTIVE:-}" ]]; then
docker_opt_interactive=
fi

docker run \
-ti \
$docker_opt_interactive \
--rm \
--workdir "$PWD" \
-v $HOME:$HOME -v cache:/cache \
Expand Down

0 comments on commit d85a66d

Please sign in to comment.