From 5dbab7e7815800ea6a110519154f05485457b194 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 12 Oct 2023 23:47:04 -0400 Subject: tests: Don't crash if unbuffer isn't installed --- tests/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tests.sh b/tests/tests.sh index 662efd9..f233f74 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -495,7 +495,7 @@ elif command -v expect_unbuffer &>/dev/null; then fi function bfs_pty() { - test -n "$UNBUFFER" || skip + test -n "${UNBUFFER:-}" || skip bfs_verbose "$@" "$UNBUFFER" bash -c 'stty cols 80 rows 24 && "$@"' bash "${BFS[@]}" "$@" -- cgit v1.2.3