Respect --no-color by setting the NO_COLOR flag in main.sh. Fixes #25. thx @gdevenyi

This commit is contained in:
Kevin van Zonneveld 2016-06-19 13:06:53 +02:00
parent 8687e384eb
commit fc7802d707
2 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@ Please see the [CHANGELOG.md](./CHANGELOG.md) file.
## master (Unreleased)
- Respect `--no-color` by setting the NO_COLOR flag in `main.sh` (#25, thx @gdevenyi)
- Split out changelog into separate file
- Added a [FAQ](./FAQ.md) (#15, #14, thanks @rouson)
- Fix Travis OSX testing (before, it would silently pass failures) (#10)

View File

@ -221,6 +221,11 @@ if [ "${arg_v}" = "1" ]; then
set -o verbose
fi
# no color mode
if [ "${arg_n}" = "1" ]; then
NO_COLOR="true"
fi
# help mode
if [ "${arg_h}" = "1" ]; then
# Help exists with code 1