fix 0 sat check

This commit is contained in:
rootzoll 2018-12-03 16:44:41 +01:00
parent 3b7d7748fa
commit aa971ba684

View File

@ -31,7 +31,7 @@ fi
# get available amount in on-chain wallet
maxAmount=$(lncli --chain=${network} walletbalance | grep '"confirmed_balance"' | cut -d '"' -f4)
if [ ${maxAmount} -gt 0 ]; then
if [ ${maxAmount} -eq 0 ]; then
dialog --title 'Info' --msgbox "You have 0 moveable funds available.\nNOTICE: Just confirmed on-chain funds can be moved." 6 58
exit 1
fi