mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
catch missing values
This commit is contained in:
parent
5d3f8cb3fb
commit
0a8dc032c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user