summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-07-13 15:21:58 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-07-13 15:21:58 -0400
commitb8903ff0720d207661c6b879635496be15b1fb1b (patch)
tree1a682330556be5f9b38d9e067470b7332530fe4b /tests
parent412102712921e2b051da1d2ae9171d67a2a4bd61 (diff)
downloadbfs-b8903ff0720d207661c6b879635496be15b1fb1b.tar.xz
tests: Set colors to the empty string for non-ttys
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests.sh9
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)