X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=3030b8632625749cc26b4822e36dd49ad814a557;hb=8465d6b889ef0f46f8f24a7b432595fdc6a8730b;hp=11ddbcfc86a99b528906dda89ef70c5815344873;hpb=746a0bd382dffe981e3b1ffe23ce0d8bacb9d350;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 11ddbcf..3030b86 100644 --- 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 +[ -n "$NOCOLORS" ] && RC_NOCOLOR='yes' 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 - ENDCOL="[$(( "${COLS}" - 8 ))G" + ENDCOL="[$(( ${COLS} - 8 ))G" else ENDCOL='' fi