Browse Source

removed error output

#146
rootzoll 7 years ago
parent
commit
8f91d19377
  1. 4
      home.admin/10setupBlitz.sh

4
home.admin/10setupBlitz.sh

@ -55,8 +55,8 @@ if [ ${lndRunning} -eq 1 ]; then
exit 0 exit 0
fi fi
# check if blockchain still syncing # check if blockchain still syncing (during sync sometimes CLI returns with error at this point)
chainInfo=$(sudo -u bitcoin ${network}-cli getblockchaininfo | grep 'initialblockdownload') chainInfo=$(sudo -u bitcoin ${network}-cli getblockchaininfo 2>/dev/null | grep 'initialblockdownload')
chainSyncing=1 chainSyncing=1
if [ ${#chainInfo} -gt 0 ];then if [ ${#chainInfo} -gt 0 ];then
chainSyncing=$(echo "${chainInfo}" | grep "true" -c) chainSyncing=$(echo "${chainInfo}" | grep "true" -c)

Loading…
Cancel
Save