detect locked wallet correctly

This commit is contained in:
Christian Rotzoll 2019-04-24 23:59:30 +02:00
parent 4301cf6b8a
commit b2886fdd78

View file

@ -130,7 +130,7 @@ if [ ${lndRunning} -eq 1 ]; then
if [ ${#lndError} -gt 0 ]; then
# scan error for walletLocked as common error
locked=$(echo ${lndinfo} | grep -c 'Wallet is encrypted')
locked=$(echo ${lndError} | grep -c 'Wallet is encrypted')
if [ ${locked} -gt 0 ]; then
echo "walletLocked=1"
else