Browse Source

added some error handling to database_functions.sh

joel
Simon Bowie 2 years ago
parent
commit
31b35bfa03
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      database_functions.sh

+ 6
- 0
database_functions.sh View File

@@ -75,6 +75,12 @@ IMPORT_SQL_FILENAME=toolkit_db.sql
EXPORT_CSV_DIRECTORY="./db_exports"
CSV_FILENAME=$2`date +"%Y%m%d"`

# error message for no flags
if (( $# == 0 )); then
Help
exit 1
fi

# Get the options
while getopts ":hleicv" flag; do
case $flag in

Loading…
Cancel
Save