diff options
| author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-18 21:27:24 -0400 |
|---|---|---|
| committer | zberwaldt <17715430+zberwaldt@users.noreply.github.com> | 2024-03-18 21:30:13 -0400 |
| commit | 53b74ec6122c94853f9d43ab2ac1f69efab0886d (patch) | |
| tree | 02b6d887d5d0ba5d887ef0334f9dba07d3814292 /db/scripts | |
| parent | e5fbe360d355557b978973f62eed06e01e85bb71 (diff) | |
clean up, add better error handling
Diffstat (limited to 'db/scripts')
| -rw-r--r-- | db/scripts/init.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/db/scripts/init.sh b/db/scripts/init.sh index 1a8bbde..3baec36 100644 --- a/db/scripts/init.sh +++ b/db/scripts/init.sh | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | PROJECT_DIR=$(pwd) | 1 | PROJECT_DIR=$(pwd) |
| 2 | 2 | ||
| 3 | DB_PATH="$PROJECT_DIR/db/test.sqlite3" | 3 | DB_PATH="$PROJECT_DIR/test.sqlite3" |
| 4 | |||
| 5 | SQL_DIR="$PROJECT_DIR/db/sql" | ||
| 6 | |||
| 7 | 4 | ||
| 5 | SQL_DIR="$PROJECT_DIR/sql" | ||
| 8 | 6 | ||
| 9 | insert_user() { | 7 | insert_user() { |
| 10 | read -p "Enter a username: " username | 8 | read -p "Enter a username: " username |
