From a9e5b584dc3dc771a6c9fd42f529141ecd6b794f Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Tue, 5 Mar 2024 10:18:29 +0100 Subject: [PATCH] Always enable color output --- entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e5e84f2..642fc5e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,11 +15,15 @@ then git config --global --replace-all url./~https://github.com/.insteadOf ssh://git@github.com/ git config --global --add url./~https://github.com/.insteadOf git@github.com: - echo $2 > $HOME/.git-credentials - chmod 600 $HOME/.git-credentials + echo "$2" > "$HOME/.git-credentials" + chmod 600 "$HOME/.git-credentials" fi shift shift +# Due to how github actions run containers we need to explicitly force colors +# as TTY detection fails inside them +export CARGO_TERM_COLOR="always" + cargo-deny $*