update boot with bes.reg

This commit is contained in:
a-sansara 2018-12-22 16:54:12 +01:00
parent 72d2a21b8d
commit 6fa5756380
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[project] [project]
vendor = bes vendor = bes
name = color name = color
version = 1.1 version = 1.3
license = "GNU GPL v3" license = "GNU GPL v3"
author = a-Sansara author = a-Sansara
type = library type = library

View File

@ -40,9 +40,9 @@ function bes.color.boot () {
color.fg "com" 175 135 175 color.fg "com" 175 135 175
color.fg "text" 0 132 101 color.fg "text" 0 132 101
color.fg "meta" 39 100 170 color.fg "meta" 39 100 170
Coff="\\033[m"
echo -e "$Cerr warning ${Coff}cannot load colors config file" echo -e "$Cerr warning ${Coff}cannot load colors config file"
fi fi
Coff="\\033[m"
fi fi
} }
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -130,4 +130,7 @@ function color.load () {
fi fi
} }
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bes.color.boot declare -f bes.reg > /dev/null
if [ $? -eq 0 ]; then
bes.reg bes.color
fi