From 527ab1159d79e9d52878e27429d470ae9f35686a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 25 Nov 2011 19:04:44 +0100 Subject: [PATCH] lsb-functions: if we do not use colors then assume terminal can not handle endcols --- etc/grml/lsb-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index d55d776..ceffb0c 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -176,7 +176,11 @@ fi RC_NOCOLOR="${RC_NOCOLOR:-no}" # Can the terminal handle endcols? -RC_ENDCOL="yes" +if [ "${RC_NOCOLOR}" = "yes" ]; then + RC_ENDCOL="yes" +else + RC_ENDCOL="no" +fi # Setup COLS and ENDCOL so eend can line up the [ ok ] # width of [ ok ] == 7 -- 2.1.4