mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
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.
This commit is contained in:
parent
4dcc6938dd
commit
02a4ff1c36
2
Makefile
2
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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user