updated create sqlDumpDir section

This commit is contained in:
Asif Bacchus 2018-09-07 04:59:24 -06:00
parent 0b4923fd79
commit f9298f6fb8

View File

@ -340,13 +340,15 @@ checkExist find createDir $sqlDumpDir
checkResult="$?" checkResult="$?"
if [ "$checkResult" = "1" ]; then if [ "$checkResult" = "1" ]; then
# verify creation successful # verify creation successful
checkExist find $sqlDumpDir checkExist find null $sqlDumpDir
checkResult="$?" checkResult="$?"
if [ "$checkResult" = "0" ]; then if [ "$checkResult" = "0" ]; then
echo -e "\e[1;39mConfirmed: \e[0;33m$sqlDumpDir \e[1;39mcreated.\e[0m" \ echo -e "\e[0;36m...done" | tee -a $logFileVerbose \
>> $logFileVerbose $logFileNormal > /dev/null
else else
# cannot continue without a place to dump SQL # cannot continue without a place to dump SQL
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \
"Unable to create ${sqlDumpDir}--" >> $logFile
quit 102 quit 102
fi fi
fi fi