summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
diff options
context:
space:
mode:
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