fix peernum

This commit is contained in:
rootzoll
2021-07-13 12:49:05 +02:00
parent 1c92ddfc51
commit 3adb20f336

View File

@@ -44,7 +44,6 @@ if [ "$1" = "peer-status" ]; then
else
# user call
peerNum=$($bitcoincli_alias getnetworkinfo 2>/dev/null | grep "connections\"" | tr -cd '[[:digit:]]')
peerNum=$( getnetworkinfo | grep "connections\"" | tr -cd '[[:digit:]]')
fi
if [ "${peerNum}" = "" ]; then
running=0