mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-06-02 06:40:40 +00:00
Respect --no-color
by setting the NO_COLOR flag in main.sh
. Fixes #25. thx @gdevenyi
This commit is contained in:
parent
8687e384eb
commit
fc7802d707
@ -4,6 +4,7 @@ Please see the [CHANGELOG.md](./CHANGELOG.md) file.
|
|||||||
|
|
||||||
## master (Unreleased)
|
## master (Unreleased)
|
||||||
|
|
||||||
|
- Respect `--no-color` by setting the NO_COLOR flag in `main.sh` (#25, thx @gdevenyi)
|
||||||
- Split out changelog into separate file
|
- Split out changelog into separate file
|
||||||
- Added a [FAQ](./FAQ.md) (#15, #14, thanks @rouson)
|
- Added a [FAQ](./FAQ.md) (#15, #14, thanks @rouson)
|
||||||
- Fix Travis OSX testing (before, it would silently pass failures) (#10)
|
- Fix Travis OSX testing (before, it would silently pass failures) (#10)
|
||||||
|
5
main.sh
5
main.sh
@ -221,6 +221,11 @@ if [ "${arg_v}" = "1" ]; then
|
|||||||
set -o verbose
|
set -o verbose
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# no color mode
|
||||||
|
if [ "${arg_n}" = "1" ]; then
|
||||||
|
NO_COLOR="true"
|
||||||
|
fi
|
||||||
|
|
||||||
# help mode
|
# help mode
|
||||||
if [ "${arg_h}" = "1" ]; then
|
if [ "${arg_h}" = "1" ]; then
|
||||||
# Help exists with code 1
|
# Help exists with code 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user