mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/functions: allow null invocatin of print_color
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
dfb1ae0d3e
commit
5c8bbb6fe1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user