checkExist: error: removed forced exit, log error instead

This commit is contained in:
Asif Bacchus 2018-09-07 04:24:00 -06:00
parent 2ada11039a
commit dc95edf22c
1 changed files with 2 additions and 3 deletions

View File

@ -219,9 +219,8 @@ function checkExist {
elif [ "$2" = "error" ]; then
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \
"${3} was not found--\e[0m" >> $logFile
cleanup 503
cleanup sqlDump
quit 101
exitError+=('101')
return 3
else
# file not found, return proper code
return 3