aboutsummaryrefslogtreecommitdiff
path: root/utils/bitcoinnodes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/bitcoinnodes.sh')
-rwxr-xr-xutils/bitcoinnodes.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/bitcoinnodes.sh b/utils/bitcoinnodes.sh
index cfc6b3e1a..03fbedd14 100755
--- a/utils/bitcoinnodes.sh
+++ b/utils/bitcoinnodes.sh
@@ -3,6 +3,8 @@
# List all the current bittorrent nodes
#
+set -e
+
# NOTE: JQ can be found at https://stedolan.github.io/jq/
curl -s -H "Accept: application/json; indent=4" https://bitnodes.io/api/v1/snapshots/latest/ | jq -r '.nodes|keys[] as $k | "\($k)"' | grep -v onion | grep -v ']' | cut -d ':' -f 1