Merge pull request #3132 from mglae/le9_custom_color

buildsystem: fix custom colors
This commit is contained in:
MilhouseVH 2018-11-29 17:40:58 +00:00 committed by GitHub
commit 5c9966c31d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,10 +87,14 @@ print_color() {
# "standard" color determined by an indirect name (CLR_ERROR etc.)
#
# If ${!clr_name} doesn't exist then assume it's a standard color.
# If ${!clr_name} does exist then check it's not a custom color mapping.
# Custom color mappings can be configured in options files.
#
clr_actual="${!clr_name}"
if [ -z "${clr_actual}" ]; then
if [ -n "${clr_actual}" ]; then
clr_actual="${!clr_actual}"
else
case "${clr_name}" in
CLR_ERROR) clr_actual="${boldred}";;
CLR_WARNING) clr_actual="${boldred}";;