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

View File

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