summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-31 17:25:44 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-31 17:25:44 +0000
commit4d3b1f1c221bc93fc9b3168f512b8afa8889372c (patch)
treec57738b5dc07a5d19b549fe5a9ba04b5c9aaea36 /bin
parent6ec501a0fa891b65341446c4ca0f8bf28082a268 (diff)
downloadportage-4d3b1f1c221bc93fc9b3168f512b8afa8889372c.tar.gz
portage-4d3b1f1c221bc93fc9b3168f512b8afa8889372c.tar.bz2
portage-4d3b1f1c221bc93fc9b3168f512b8afa8889372c.zip
Bug #236609 - Fix columns calculation for TERM="dumb". Thanks to Ulrich Müller
<ulm@g.o> for the patch. svn path=/main/trunk/; revision=11764
Diffstat (limited to 'bin')
-rwxr-xr-xbin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 09854b282..2bb98aee1 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -371,7 +371,7 @@ set_colors() {
(( COLS > 0 )) || (( COLS = 80 ))
COLS=$((${COLS} - 8)) # width of [ ok ] == 7
# Adjust COLS so that eend works properly on a standard BSD console.
- [ "${TERM}" = "cons25" ] && COLS=$((${COLS} - 1))
+ [[ $TERM = cons25 || $TERM = dumb ]] && ((COLS--))
# Now, ${ENDCOL} will move us to the end of the
# column; irregardless of character width