checkExist: error: removed forced exit, log error instead
This commit is contained in:
parent
2ada11039a
commit
dc95edf22c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user