Updated sqlDumpDir section to use updated checkExist

This commit is contained in:
Asif Bacchus 2018-09-07 04:39:11 -06:00
parent 626c6736b1
commit 3783c7db19

View File

@ -342,7 +342,15 @@ checkExist find createDir $sqlDumpDir
checkResult="$?"
if [ "$checkResult" = "1" ]; then
# verify creation successful
checkExist verify $sqlDumpDir
checkExist find $sqlDumpDir
checkResult="$?"
if [ "$checkResult" = "0" ]; then
echo -e "\e[1;39mConfirmed: \e[0;33m$sqlDumDir \e[1;39mcreated.\e[0m" \
>> $logFileVerbose
else
# cannot continue without a place to dump SQL
quit 102
fi
fi
## Create unique filename for sqlDump file