From b5dfcc4daf319b12856ec41f6adc202526f8c396 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 25 Nov 2011 19:09:27 +0100 Subject: [PATCH] don't use colors/escape sequences if running in dump terminal --- grml-live | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/grml-live b/grml-live index ca23f83..36581d1 100755 --- a/grml-live +++ b/grml-live @@ -118,6 +118,12 @@ BUILD_DIRTY='' BOOTSTRAP_ONLY='' HOSTNAME='' +# don't use colors/escape sequences +if [ -r /lib/lsb/init-functions ] ; then + . /lib/lsb/init-functions + ! log_use_fancy_output && NOCOLORS=true +fi + if [ -r /etc/grml/lsb-functions ] ; then . /etc/grml/lsb-functions else -- 2.1.4