Fix variable name

Signed-off-by: Lukas Kozak <luks.kozak@gmail.com>
pull/1076/head
Lukas Kozak 6 years ago
parent 9277a3b1d3
commit 7dda85bf4f
No known key found for this signature in database
GPG Key ID: B58E6926B798EB73
  1. 3
      scripts/mystatus.sh

@ -32,7 +32,6 @@ valid_ip () {
} }
status_report () { status_report () {
# Block heights # Block heights
heightStatus=$(tac latest/validator*.log | grep -Eom1 '"myHeight":[0-9]+' | cut -d: -f2) heightStatus=$(tac latest/validator*.log | grep -Eom1 '"myHeight":[0-9]+' | cut -d: -f2)
lengthOfChain=$(tac latest/validator*.log | grep -Eom1 '"otherHeight":[0-9]+' | cut -d: -f2) lengthOfChain=$(tac latest/validator*.log | grep -Eom1 '"otherHeight":[0-9]+' | cut -d: -f2)
@ -45,7 +44,7 @@ status_report () {
# Check validity of IP # Check validity of IP
if ! valid_ip $ip; then if ! valid_ip $ip; then
echo "NO valid public IP found: $PUB_IP" echo "NO valid public IP found: $ip"
exit 2 exit 2
fi fi

Loading…
Cancel
Save