X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fgrml%2Flsb-functions;h=9f0e2f4cda48b2843979ee01ce291070dc6f2908;hb=137fc620c1b29c0aa7719ef90d50cb9e99e0381d;hp=11ddbcfc86a99b528906dda89ef70c5815344873;hpb=60b0fa9d552473625ec5057ecb010b5f309c7746;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 11ddbcf..9f0e2f4 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