fix(lib-db): Improve lib-db and fix problem regarding adding new values.
This commit is contained in:
parent
5261ccf36d
commit
4d05f71f98
2 changed files with 1 additions and 2 deletions
|
@ -1,2 +1 @@
|
||||||
# Internal database for the bash side of Blueprint.
|
# Internal database for the bash side of Blueprint.
|
||||||
+ db.addnewrecord;
|
|
|
@ -7,7 +7,7 @@ FLDR=$BLUEPRINT__FOLDER"/.blueprint/data/internal/db/database"
|
||||||
|
|
||||||
dbAdd() {
|
dbAdd() {
|
||||||
# dbAdd "database.record";
|
# dbAdd "database.record";
|
||||||
sed -i "s/+ db.addnewrecord;/* ${1};+ db.addnewrecord;/g" $FLDR > /dev/null;
|
echo "* ${1};" >> $FLDR
|
||||||
}; dbValidate() {
|
}; dbValidate() {
|
||||||
# dbValidate "database.record";
|
# dbValidate "database.record";
|
||||||
grep -Fxq "* ${1};" $FLDR > /dev/null;
|
grep -Fxq "* ${1};" $FLDR > /dev/null;
|
||||||
|
|
Loading…
Reference in a new issue