浏览代码

added some error handling to database_functions.sh

joel
Simon Bowie 2 年前
父节点
当前提交
31b35bfa03
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      database_functions.sh

+ 6
- 0
database_functions.sh 查看文件

EXPORT_CSV_DIRECTORY="./db_exports" EXPORT_CSV_DIRECTORY="./db_exports"
CSV_FILENAME=$2`date +"%Y%m%d"` CSV_FILENAME=$2`date +"%Y%m%d"`


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

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

正在加载...
取消
保存