From 02a4ff1c3611df8bfcb01d2bafcd5be3af5ca3a1 Mon Sep 17 00:00:00 2001 From: James Laska Date: Thu, 6 Mar 2014 09:39:20 -0500 Subject: [PATCH] Disable grunt color output when called from a non-interactive shell The grunt command is still configurable via the GRUNT environment variable. By default, we disable colored output when we detect the shell is non-interactive. This improves reviewing output when run from automation. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4f0e2934f6..bdc7b12284 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PYTHON=python SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") PACKER ?= packer -GRUNT ?= grunt +GRUNT ?= $(shell [[ -t 0 || -p /dev/stdin ]] && echo "grunt" || echo "grunt --no-color") # Get the branch information from git GIT_DATE := $(shell git log -n 1 --format="%ai")