From b2f4385232f7293d16e2a24eee6b60e3e7011308 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 3 Feb 2019 17:05:00 +0100 Subject: [PATCH] Avoid infinity loop if gravity optimization fails Signed-off-by: DL6ER --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index d0b44c24..06e75a90 100755 --- a/gravity.sh +++ b/gravity.sh @@ -692,7 +692,7 @@ gravity_Cleanup() { if [[ "${status}" -ne 0 ]]; then echo -e "\\n ${CROSS} Unable to optimize gravity database ${gravityDBfile}\\n ${output}" - gravity_Cleanup "error" + error="error" else echo -e "${OVER} ${TICK} ${str}" fi