Check for mandatory sqlDumpDir parameter

This commit is contained in:
Asif Bacchus 2018-09-19 16:50:32 -06:00
parent 5d33f5877e
commit de327e663b

View File

@ -131,6 +131,11 @@ if [ $(id -u) -ne 0 ]; then
fi fi
### Check for mandatory parameters
if [ -z "$sqlDumpDir" ] || [[ "$sqlDumpDir" == -* ]]; then
quit 101
fi
### Set logging verbosity based on invocation parameters ### Set logging verbosity based on invocation parameters
if [ "$logLevel" = "normal" ]; then if [ "$logLevel" = "normal" ]; then
borgCreateParams='--stats' borgCreateParams='--stats'