projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
/etc/grml/lsb-functions: some more slightly improvements
[grml-etc-core.git]
/
etc
/
grml
/
lsb-functions
diff --git
a/etc/grml/lsb-functions
b/etc/grml/lsb-functions
index
11ddbcf
..
3030b86
100644
(file)
--- a/
etc/grml/lsb-functions
+++ b/
etc/grml/lsb-functions
@@
-143,6
+143,7
@@
RC_DOT_PATTERN=''
if [ -r /proc/cmdline ] ; then
grep -q ' nocolor' /proc/cmdline && RC_NOCOLOR='yes'
fi
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?
RC_NOCOLOR="${RC_NOCOLOR:-no}"
# Can the terminal handle endcols?
@@
-156,7
+157,7
@@
if [ -z "${COLS}" ] || [ "${COLS}" -le 0 ] ; then
fi
if [ "${RC_ENDCOL}" = "yes" ]; then
fi
if [ "${RC_ENDCOL}" = "yes" ]; then
-
ENDCOL="
\e
[A
\e
[$(( "${COLS}"
- 8 ))G"
+
ENDCOL="
\e
[A
\e
[$(( ${COLS}
- 8 ))G"
else
ENDCOL=''
fi
else
ENDCOL=''
fi