X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=38baf15cde18a9853c3f971aa89249a554811153;hb=refs%2Ftags%2F0.3.26;hp=304ce06b28f88efd6597d097505eedc2ff7bd6ff;hpb=a7ae190d02dedc2f5f8b41645324c45ffae358bf;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 304ce06..38baf15 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -789,10 +789,13 @@ case "$*" in [ -n "${EBUILD}" ] && COLS=80 esac +# Setup COLS and ENDCOL so eend can line up the [ ok ] +# width of [ ok ] == 7 if [ "${COLS}" -eq 0 ] ; then - # Setup COLS and ENDCOL so eend can line up the [ ok ] COLS="$(stty size 2>/dev/null | cut -d' ' -f2)" - [ "${COLS}" -gt 0 ] || COLS=80 # width of [ ok ] == 7 + if [ -z "${COLS}" ] || [ "${COLS}" -le 0 ] ; then + COLS=80 + fi fi if [ "${RC_ENDCOL}" = "yes" ]; then