mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
Merge pull request #3132 from mglae/le9_custom_color
buildsystem: fix custom colors
This commit is contained in:
commit
5c9966c31d
@ -87,10 +87,14 @@ print_color() {
|
|||||||
# "standard" color determined by an indirect name (CLR_ERROR etc.)
|
# "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} 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}"
|
clr_actual="${!clr_name}"
|
||||||
|
|
||||||
if [ -z "${clr_actual}" ]; then
|
if [ -n "${clr_actual}" ]; then
|
||||||
|
clr_actual="${!clr_actual}"
|
||||||
|
else
|
||||||
case "${clr_name}" in
|
case "${clr_name}" in
|
||||||
CLR_ERROR) clr_actual="${boldred}";;
|
CLR_ERROR) clr_actual="${boldred}";;
|
||||||
CLR_WARNING) clr_actual="${boldred}";;
|
CLR_WARNING) clr_actual="${boldred}";;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user