summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-12-18 21:43:51 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-12-18 21:43:51 +0100
commit35a87e80937d06eab3b605dc038b48da590fe88e (patch)
tree2dfa5473ce096c2aa3ce89b31738ad840b751f19 /bin/isolated-functions.sh
parentaae7d871ba564c188a16eff96dac302ba74aade1 (diff)
downloadportage-35a87e80937d06eab3b605dc038b48da590fe88e.tar.gz
portage-35a87e80937d06eab3b605dc038b48da590fe88e.tar.bz2
portage-35a87e80937d06eab3b605dc038b48da590fe88e.zip
set_colors(): Redirect input to `stty size` to make it work after
commit a3797a63a30579be3ba5418aad7e76fd520f9aee.
Diffstat (limited to 'bin/isolated-functions.sh')
-rw-r--r--bin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index d2ea319bd..1bcc5c907 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -415,7 +415,7 @@ set_colors() {
# If stdout is a pipe, the parent process can export COLUMNS
# if it's relevant.
[[ $COLS == 0 && $EBUILD_PHASE != depend ]] && \
- COLS=$(set -- $(stty size 2>/dev/null) ; echo $2)
+ COLS=$(set -- $(stty size </dev/tty 2>/dev/null) ; echo $2)
(( COLS > 0 )) || (( COLS = 80 ))
# Now, ${ENDCOL} will move us to the end of the