From: Michael Prokop Date: Fri, 25 Nov 2011 18:09:27 +0000 (+0100) Subject: don't use colors/escape sequences if running in dump terminal X-Git-Tag: v0.17.0~67 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=b5dfcc4daf319b12856ec41f6adc202526f8c396 don't use colors/escape sequences if running in dump terminal --- 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