HomeDisk/scripts/create-sqlite-database.sh

13 lines
245 B
Bash
Executable File

#!/bin/bash
if [ -f 'homedisk.db' ]
then
echo 'Database `homedisk.db` exists!'
exit 1
fi
# create a database using the commands from the `tables.sql` file
sqlite3 homedisk.db < tables.sql
echo 'Created SQLite database `homedisk.db`!'