turn on colour by default

...when stdout+stderr connected to a tty (as opposed for example to being
piped to a log file)

very helpful to have colour such that the red/yellow of errors/warnings
can draw the eye to problems.

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-03-11 21:27:18 +00:00 committed by Raphaël Hertzog
parent 49e68da5ee
commit 09b279b7bc
1 changed files with 5 additions and 1 deletions

View File

@ -296,8 +296,12 @@ Set_config_defaults ()
esac
# Setting live build options
if [ -t 1 ] && [ -t 2 ]; then
_COLOR="${_COLOR:-true}"
else
_COLOR="${_COLOR:-false}"
fi
_BREAKPOINTS="${_BREAKPOINTS:-false}"
_COLOR="${_COLOR:-false}"
_DEBUG="${_DEBUG:-false}"
_FORCE="${_FORCE:-false}"
_QUIET="${_QUIET:-false}"