From 026c7947a033968ac8fff4be0057b047ecaa6bca Mon Sep 17 00:00:00 2001 From: purple Date: Mon, 20 Nov 2023 23:47:10 +0100 Subject: [PATCH] feat(lib-db): improve code formatting --- blueprint/lib/db.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/blueprint/lib/db.sh b/blueprint/lib/db.sh index 1b54edd..dfa4e5f 100644 --- a/blueprint/lib/db.sh +++ b/blueprint/lib/db.sh @@ -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 }