16 lines
461 B
Bash
16 lines
461 B
Bash
#!/bin/bash
|
|
#
|
|
# This script has been created as part of the Blueprint source code
|
|
# and may be intergrated directly into the core in the future.
|
|
|
|
FLDR=$BLUEPRINT__FOLDER"/.blueprint/extensions/blueprint/private/db/database"
|
|
|
|
|
|
# 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 }
|