diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-07-13 15:21:58 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-07-13 15:21:58 -0400 |
commit | b8903ff0720d207661c6b879635496be15b1fb1b (patch) | |
tree | 1a682330556be5f9b38d9e067470b7332530fe4b | |
parent | 412102712921e2b051da1d2ae9171d67a2a4bd61 (diff) | |
download | bfs-b8903ff0720d207661c6b879635496be15b1fb1b.tar.xz |
tests: Set colors to the empty string for non-ttys
-rwxr-xr-x | tests/tests.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests.sh b/tests/tests.sh index 6ffef56..96af49c 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -40,6 +40,15 @@ if [ -t 1 ]; then MAG=$'\033[01;35m' CYN=$'\033[01;36m' RST=$'\033[0m' +else + BLD= + RED= + GRN= + YLW= + BLU= + MAG= + CYN= + RST= fi UNAME=$(uname) |