fix(lib-db): Improve lib-db and fix problem regarding adding new values.

This commit is contained in:
purple 2023-11-01 14:07:05 +01:00
parent 5261ccf36d
commit 4d05f71f98
2 changed files with 1 additions and 2 deletions

View file

@ -1,2 +1 @@
# Internal database for the bash side of Blueprint.
+ db.addnewrecord;

View file

@ -7,7 +7,7 @@ FLDR=$BLUEPRINT__FOLDER"/.blueprint/data/internal/db/database"
dbAdd() {
# dbAdd "database.record";
sed -i "s/+ db.addnewrecord;/* ${1};+ db.addnewrecord;/g" $FLDR > /dev/null;
echo "* ${1};" >> $FLDR
}; dbValidate() {
# dbValidate "database.record";
grep -Fxq "* ${1};" $FLDR > /dev/null;