8 lines
231 B
Bash
Executable File
8 lines
231 B
Bash
Executable File
read -p "This command will destroy the database and re-create it. Are you sure? " -n 1 -r
|
|
echo # (optional) move to a new line
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
rm -f data.db
|
|
sqlite3 data.db < ./src/server/db/schema.sql
|
|
fi
|