Skip to content

Commit 7466410

Browse files
author
Patricia Aas
committed
Try to make the colors cross platform
1 parent 44f33bc commit 7466410

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ header() {
88
if [ "$OSTYPE" = "darwin19" ] ; then
99
echo -e "$1"
1010
else
11-
echo -e "\e[35m$1\e[0m"
11+
echo -e "\x1B[35m$1\x1B[0m"
1212
fi
1313
}
1414

1515
subheader() {
1616
if [ "$OSTYPE" = "darwin19" ] ; then
1717
echo -e "$1"
1818
else
19-
echo -e "\e[36m$1\e[0m"
19+
echo -e "\x1B[36m$1\x1B[0m"
2020
fi
2121
}
2222

2323
info() {
2424
if [ "$OSTYPE" = "darwin19" ] ; then
2525
echo -e "$1"
2626
else
27-
echo -e "\e[34m$1\e[0m"
27+
echo -e "\x1B[34m$1\x1B[0m"
2828
fi
2929
}
3030

0 commit comments

Comments
 (0)