feat: Suppress color for all hooks if PRE_COMMIT_COLOR=never set (#409)

This commit is contained in:
Maksym Vlasov 2022-07-06 15:34:13 +03:00 committed by Anton Babenko
commit b12f0c662c
15 changed files with 78 additions and 11 deletions

View file

@ -35,7 +35,7 @@ function infracost_breakdown_ {
# Get hook settings
IFS=";" read -r -a checks <<< "$hook_config"
# Suppress infracost color
if [ "$PRE_COMMIT_COLOR" = "never" ]; then
args+=("--no-color")
fi