From aa971ba684d6d29c9f7355f771f65e336a94589c Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 3 Dec 2018 16:44:41 +0100 Subject: [PATCH] fix 0 sat check --- home.admin/BBcashoutWallet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/BBcashoutWallet.sh b/home.admin/BBcashoutWallet.sh index 0b09aeabb..2a0da3d74 100755 --- a/home.admin/BBcashoutWallet.sh +++ b/home.admin/BBcashoutWallet.sh @@ -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