Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
fix chalk in non-tty
Browse files Browse the repository at this point in the history
 🐿 v2.10.3
  • Loading branch information
apaleslimghost committed Nov 20, 2018
1 parent a461455 commit 5479729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ IS_GIT_IGNORED = grep -q $(if $1, $1, $@) .gitignore
REPLACE_IN_GITIGNORE = sed -i -e 's/$1/$2/g' .gitignore && rm -f .gitignore-e ||:

# functions for eye-catching terminal output
COLOR = $(shell /usr/bin/env PATH=$(PATH) FORCE_COLOR=1 chalk -t "$1 ")
COLOR = $(shell /usr/bin/env PATH=$(PATH) FORCE_COLOR=1 chalk --no-stdin -t "$1 ")
CAPITALISE = $(shell STR="$1"; echo "$$(tr '[:lower:]' '[:upper:]' <<<"$${STR:0:1}")$${STR:1}")

MESSAGE = $(call COLOR,{black.bg$(call CAPITALISE,$1) $2 }{$1.bgBlackBright.bold $3 } $(strip $4))
Expand Down

0 comments on commit 5479729

Please sign in to comment.