Adjust interactive shell test

To improve grunt readability from test automation, disable colorized output
when running a non-interactive shell.
This commit is contained in:
James Laska
2014-03-19 11:29:02 -04:00
parent 6cd5552b6a
commit 20aa89e33c

View File

@@ -1,7 +1,7 @@
PYTHON=python
SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
PACKER ?= packer
GRUNT ?= $(shell [ -t 0 -o -p /dev/stdin ] && echo "grunt" || echo "grunt --no-color")
GRUNT ?= $(shell [ -t 0 ] && echo "grunt" || echo "grunt --no-color")
# Get the branch information from git
GIT_DATE := $(shell git log -n 1 --format="%ai")