Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/crystal
Original file line number Diff line number Diff line change
@@ -115,17 +115,16 @@ __has_colors() {
return 1
fi
}
SUPPORTS_COLORS=$(__has_colors)
__error_msg() {
if $SUPPORTS_COLORS; then
if __has_colors; then
# bold red coloring
printf '%b\n' "\033[31;1m$@\033[0m" 1>&2
else
printf '%b\n' "$@" 1>&2
fi
}
__warning_msg() {
if $SUPPORTS_COLORS; then
if __has_colors; then
# brown coloring
printf '%b\n' "\033[33m$@\033[0m" 1>&2
else

0 comments on commit f387380

Please sign in to comment.