From c84f58bb8d5f3e862aae389ea00ed5d2c8a5383d Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 28 Feb 2018 08:48:19 +0100 Subject: [PATCH] xbps-src: support $NO_COLOR --- xbps-src | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbps-src b/xbps-src index 8ebb7307121..f4d74a5a642 100755 --- a/xbps-src +++ b/xbps-src @@ -547,6 +547,10 @@ fi # Check if stdout is a tty; if false disable colors. 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 export CHROOT_READY=1