From 8f91d19377fca5e78859b6570c0eaf3ba7408e46 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Fri, 24 Aug 2018 12:55:04 +0200 Subject: [PATCH] removed error output --- home.admin/10setupBlitz.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/10setupBlitz.sh b/home.admin/10setupBlitz.sh index c12b5fe..af2a6a0 100755 --- a/home.admin/10setupBlitz.sh +++ b/home.admin/10setupBlitz.sh @@ -55,8 +55,8 @@ if [ ${lndRunning} -eq 1 ]; then exit 0 fi - # check if blockchain still syncing - chainInfo=$(sudo -u bitcoin ${network}-cli getblockchaininfo | grep 'initialblockdownload') + # check if blockchain still syncing (during sync sometimes CLI returns with error at this point) + chainInfo=$(sudo -u bitcoin ${network}-cli getblockchaininfo 2>/dev/null | grep 'initialblockdownload') chainSyncing=1 if [ ${#chainInfo} -gt 0 ];then chainSyncing=$(echo "${chainInfo}" | grep "true" -c)