Skip to content

Commit

Permalink
fix color codes on windows (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 authored Feb 9, 2022
1 parent ed0a4f8 commit acc9b04
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ if ! [ -x "$(command -v "$cmd")" ]; then
fi

# color codes
red='\033[0;31m'
green='\033[0;32m'
cyan='\033[0;36m'
white='\033[0;37m'
off='\033[0m'
escape=$(printf '\033')
red="$escape[0;31m"
green="$escape[0;32m"
cyan="$escape[0;36m"
white="$escape[0;97m"
off="$escape[0m"

# set to 1 if any test fails
exit_code=0
Expand Down

0 comments on commit acc9b04

Please sign in to comment.