From 0be0181ed88a2533b40f722b21875aa69d6cea5f Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Sun, 5 Nov 2023 16:25:50 -0600 Subject: [PATCH] Fix issue parsing lncli output --- rootfs/standard/usr/bin/wait_on_lnd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/standard/usr/bin/wait_on_lnd.sh b/rootfs/standard/usr/bin/wait_on_lnd.sh index 68c5bbea..05c898b4 100755 --- a/rootfs/standard/usr/bin/wait_on_lnd.sh +++ b/rootfs/standard/usr/bin/wait_on_lnd.sh @@ -9,11 +9,11 @@ fi # Wait until lnd is synced echo "Checking if LND is synced..." -lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain": true' +lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain":\s*true' while [ $? -ne 0 ]; do echo "LND not synced, sleeping for 60 seconds..." /bin/sleep 60s - lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain": true' + lncli --network=$NETWORK --lnddir /mnt/hdd/mynode/lnd getinfo | grep 'synced_to_chain":\s*true' done echo "LND is ready." exit 0 \ No newline at end of file