catch missing values

This commit is contained in:
rootzoll 2021-08-24 22:04:22 +02:00
parent 5d3f8cb3fb
commit 0a8dc032c6

View File

@ -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