projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b4ae7e
)
lsb-functions: if we do not use colors then assume terminal can not handle endcols
author
Michael Prokop
<mika@grml.org>
Fri, 25 Nov 2011 18:04:44 +0000
(19:04 +0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 25 Nov 2011 18:04:44 +0000
(19:04 +0100)
etc/grml/lsb-functions
patch
|
blob
|
history
diff --git
a/etc/grml/lsb-functions
b/etc/grml/lsb-functions
index
d55d776
..
ceffb0c
100644
(file)
--- 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