mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
config/functions: allow null invocatin of print_color
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
@@ -38,6 +38,8 @@ listremoveitem() {
|
||||
print_color() {
|
||||
local clr_name="$1" clr_text="$2" clr_actual
|
||||
|
||||
[ -z "${clr_name}" ] && return 0
|
||||
|
||||
if [ "$DISABLE_COLORS" = "yes" ]; then
|
||||
[ $# -eq 2 ] && echo -en "${clr_text}"
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user