xbps-src: support $NO_COLOR
This commit is contained in:
parent
fffb3a579f
commit
c84f58bb8d
4
xbps-src
4
xbps-src
|
@ -547,6 +547,10 @@ fi
|
||||||
|
|
||||||
# Check if stdout is a tty; if false disable colors.
|
# Check if stdout is a tty; if false disable colors.
|
||||||
test -t 1 || export NOCOLORS=1
|
test -t 1 || export NOCOLORS=1
|
||||||
|
# http://no-color.org
|
||||||
|
if [ -n "${NO_COLOR+x}" ]; then
|
||||||
|
export NOCOLORS=1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then
|
if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then
|
||||||
export CHROOT_READY=1
|
export CHROOT_READY=1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user