feat(lib-db): improve code formatting

This commit is contained in:
purple 2023-11-20 23:47:10 +01:00 committed by GitHub
parent b75e4a0b0a
commit 026c7947a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,13 +5,12 @@
FLDR=$BLUEPRINT__FOLDER"/.blueprint/extensions/blueprint/private/db/database"
dbAdd() {
# dbAdd "database.record";
echo "* ${1};" >> $FLDR
}; dbValidate() {
# dbValidate "database.record";
grep -Fxq "* ${1};" $FLDR > /dev/null;
}; dbRemove() {
# dbRemove "database.record";
sed -i "s/* ${1};//g" $FLDR > /dev/null;
};
# dbAdd "database.record"
dbAdd() { echo "* ${1};" >> $FLDR }
# dbValidate "database.record"
dbValidate() { grep -Fxq "* ${1};" $FLDR > /dev/null }
# dbRemove "database.record"
dbRemove() { sed -i "s/* ${1};//g" $FLDR > /dev/null }