From: Michael Prokop Date: Mon, 17 Sep 2007 15:17:02 +0000 (+0200) Subject: /etc/grml/lsb-functions: support disabling colors through $NOCOLORS X-Git-Tag: 0.3.27 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=refs%2Ftags%2F0.3.27;p=grml-etc-core.git /etc/grml/lsb-functions: support disabling colors through $NOCOLORS --- diff --git a/debian/changelog b/debian/changelog index 1570370..66dd1de 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,8 +6,10 @@ grml-etc-core (0.3.27) unstable; urgency=low [ Michael Prokop ] * Update /etc/apt/sources.list.grml. + * /etc/grml/lsb-functions: support disabling + colors through $NOCOLORS - -- Michael Prokop Sun, 16 Sep 2007 20:23:22 +0200 + -- Michael Prokop Mon, 17 Sep 2007 17:16:26 +0200 grml-etc-core (0.3.26) unstable; urgency=low diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 11ddbcf..d72076f 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -143,6 +143,7 @@ RC_DOT_PATTERN='' if [ -r /proc/cmdline ] ; then grep -q ' nocolor' /proc/cmdline && RC_NOCOLOR='yes' fi +[ -n "$NOCOLORS" ] && RC_NOCOLOR='yes' RC_NOCOLOR="${RC_NOCOLOR:-no}" # Can the terminal handle endcols?