summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-12 23:47:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-12 23:47:04 -0400
commit5dbab7e7815800ea6a110519154f05485457b194 (patch)
tree00245988e3206142f3af057a61295215ecbdb9a7 /tests
parentd40eb87cc00f50a5debb8899eacb7fcf1065badf (diff)
downloadbfs-5dbab7e7815800ea6a110519154f05485457b194.tar.xz
tests: Don't crash if unbuffer isn't installed
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests.sh2
1 files changed, 1 insertions, 1 deletions
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[@]}" "$@"