feat(lib-db): improve code formatting
This commit is contained in:
parent
b75e4a0b0a
commit
026c7947a0
1 changed files with 9 additions and 10 deletions
|
@ -5,13 +5,12 @@
|
||||||
|
|
||||||
FLDR=$BLUEPRINT__FOLDER"/.blueprint/extensions/blueprint/private/db/database"
|
FLDR=$BLUEPRINT__FOLDER"/.blueprint/extensions/blueprint/private/db/database"
|
||||||
|
|
||||||
dbAdd() {
|
|
||||||
# dbAdd "database.record";
|
# dbAdd "database.record"
|
||||||
echo "* ${1};" >> $FLDR
|
dbAdd() { echo "* ${1};" >> $FLDR }
|
||||||
}; dbValidate() {
|
|
||||||
# dbValidate "database.record";
|
# dbValidate "database.record"
|
||||||
grep -Fxq "* ${1};" $FLDR > /dev/null;
|
dbValidate() { grep -Fxq "* ${1};" $FLDR > /dev/null }
|
||||||
}; dbRemove() {
|
|
||||||
# dbRemove "database.record";
|
# dbRemove "database.record"
|
||||||
sed -i "s/* ${1};//g" $FLDR > /dev/null;
|
dbRemove() { sed -i "s/* ${1};//g" $FLDR > /dev/null }
|
||||||
};
|
|
||||||
|
|
Loading…
Reference in a new issue