/etc/grml/lsb-functions: support disabling colors through $NOCOLORS 0.3.27
authorMichael Prokop <mika@grml.org>
Mon, 17 Sep 2007 15:17:02 +0000 (17:17 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 17 Sep 2007 15:17:02 +0000 (17:17 +0200)
debian/changelog
etc/grml/lsb-functions

index 1570370..66dd1de 100644 (file)
@@ -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 <mika@grml.org>  Sun, 16 Sep 2007 20:23:22 +0200
+ -- Michael Prokop <mika@grml.org>  Mon, 17 Sep 2007 17:16:26 +0200
 
 grml-etc-core (0.3.26) unstable; urgency=low
 
index 11ddbcf..d72076f 100644 (file)
@@ -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?