Avoid infinity loop if gravity optimization fails

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-02-03 17:05:00 +01:00
parent 1f9a7d0b0c
commit b2f4385232
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

@ -692,7 +692,7 @@ gravity_Cleanup() {
if [[ "${status}" -ne 0 ]]; then if [[ "${status}" -ne 0 ]]; then
echo -e "\\n ${CROSS} Unable to optimize gravity database ${gravityDBfile}\\n ${output}" echo -e "\\n ${CROSS} Unable to optimize gravity database ${gravityDBfile}\\n ${output}"
gravity_Cleanup "error" error="error"
else else
echo -e "${OVER} ${TICK} ${str}" echo -e "${OVER} ${TICK} ${str}"
fi fi