From 6fa575638020ba8a2ee88ad5521af4f4ee7e3232 Mon Sep 17 00:00:00 2001 From: a-sansara Date: Sat, 22 Dec 2018 16:54:12 +0100 Subject: [PATCH] update boot with bes.reg --- bes.ini | 2 +- src/color.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bes.ini b/bes.ini index 4896fc9..f7c6758 100644 --- a/bes.ini +++ b/bes.ini @@ -1,7 +1,7 @@ [project] vendor = bes name = color -version = 1.1 +version = 1.3 license = "GNU GPL v3" author = a-Sansara type = library diff --git a/src/color.sh b/src/color.sh index 1553ea4..03321dd 100755 --- a/src/color.sh +++ b/src/color.sh @@ -40,9 +40,9 @@ function bes.color.boot () { color.fg "com" 175 135 175 color.fg "text" 0 132 101 color.fg "meta" 39 100 170 - Coff="\\033[m" echo -e "$Cerr warning ${Coff}cannot load colors config file" fi + Coff="\\033[m" fi } # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -130,4 +130,7 @@ function color.load () { fi } # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -bes.color.boot +declare -f bes.reg > /dev/null +if [ $? -eq 0 ]; then + bes.reg bes.color +fi