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]
vendor = bes
name = color
version = 1.1
version = 1.3
license = "GNU GPL v3"
author = a-Sansara
type = library

View File

@ -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