projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added tag 0.3.26 for changeset b9fb8b8fe3b9201cc614194b8ac7fc79934d7977
[grml-etc-core.git]
/
etc
/
grml
/
lsb-functions
diff --git
a/etc/grml/lsb-functions
b/etc/grml/lsb-functions
index
304ce06
..
38baf15
100644
(file)
--- a/
etc/grml/lsb-functions
+++ b/
etc/grml/lsb-functions
@@
-789,10
+789,13
@@
case "$*" in
[ -n "${EBUILD}" ] && COLS=80
esac
[ -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
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="$(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
fi
if [ "${RC_ENDCOL}" = "yes" ]; then