We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 9abbd40 commit f387380Copy full SHA for f387380
bin/crystal
@@ -115,17 +115,16 @@ __has_colors() {
115
return 1
116
fi
117
}
118
-SUPPORTS_COLORS=$(__has_colors)
119
__error_msg() {
120
- if $SUPPORTS_COLORS; then
+ if __has_colors; then
121
# bold red coloring
122
printf '%b\n' "\033[31;1m$@\033[0m" 1>&2
123
else
124
printf '%b\n' "$@" 1>&2
125
126
127
__warning_msg() {
128
129
# brown coloring
130
printf '%b\n' "\033[33m$@\033[0m" 1>&2
131
0 commit comments