diff --git a/home.admin/setup.scripts/eventBlockchainSync.sh b/home.admin/setup.scripts/eventBlockchainSync.sh index c4141f3d..f79a98f2 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