summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 5fcccad..7b7fe24 100644
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -14,7 +14,7 @@ update_eol() {
# Bash gets $COLUMNS from stderr, so if it's redirected use tput instead
local cols="${COLUMNS-}"
if [ -z "$cols" ]; then
- cols=$(tput cols)
+ cols=$(tput cols 2>/dev/tty)
fi
# Put the cursor at the last column, then write a space so the next