From 0a8dc032c636653aeb733cceb3c9a7b3b0b9bba9 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Tue, 24 Aug 2021 22:04:22 +0200 Subject: [PATCH] catch missing values --- home.admin/setup.scripts/eventBlockchainSync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/setup.scripts/eventBlockchainSync.sh b/home.admin/setup.scripts/eventBlockchainSync.sh index c4141f3d8..f79a98f22 100644 --- a/home.admin/setup.scripts/eventBlockchainSync.sh +++ b/home.admin/setup.scripts/eventBlockchainSync.sh @@ -47,10 +47,10 @@ do # formatting LIGHTNING SCAN PROGRESS if [ "${lightning}" != "" ] && [ "${scanProgress}" == "" ]; then # in case of LND RPC is not ready yet - if [ ${scanTimestamp} -eq -2 ]; then + if [ "${scanTimestamp}" != "" ] && [ ${scanTimestamp} -eq -2 ]; then scanProgress="prepare sync" # in case LND restarting >2 - elif [ ${startcountLightning} -gt 2 ]; then + elif [ "${startcountLightning}" != "" ] && [ ${startcountLightning} -gt 2 ]; then scanProgress="${startcountLightning} restarts" # unkown cases else