From dd8ac68070176343a8781e67de4bbd6a071bb89d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 20 Oct 2023 15:56:55 -0400 Subject: tests: Fix column detection with redirected stderr --- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3