Skip to content

Commit acc9b04

Browse files
authored
fix color codes on windows (#63)
1 parent ed0a4f8 commit acc9b04

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/run_test.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ if ! [ -x "$(command -v "$cmd")" ]; then
4848
fi
4949

5050
# color codes
51-
red='\033[0;31m'
52-
green='\033[0;32m'
53-
cyan='\033[0;36m'
54-
white='\033[0;37m'
55-
off='\033[0m'
51+
escape=$(printf '\033')
52+
red="$escape[0;31m"
53+
green="$escape[0;32m"
54+
cyan="$escape[0;36m"
55+
white="$escape[0;97m"
56+
off="$escape[0m"
5657

5758
# set to 1 if any test fails
5859
exit_code=0

0 commit comments

Comments
 (0)