Skip to content

Commit ac42de1

Browse files
committed
No colors on CI
1 parent cb7887f commit ac42de1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/install-package-tests

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ is_numeric() {
1515
*) return 0;; # returns 0 if numeric
1616
esac
1717
}
18-
# Promt color vars.
18+
# Prompt color vars.
1919
C_RED="\033[31m"
2020
C_BLUE="\033[34m"
2121
NO_FORMAT="\033[0m"
2222

23+
# If running in CI, don't use colors.
24+
if [ -n "${CI}" ]; then
25+
C_RED=""
26+
C_BLUE=""
27+
NO_FORMAT=""
28+
fi
29+
2330
HOST=localhost
2431
PORT=""
2532
HOST_STRING=''

0 commit comments

Comments
 (0)