#!/usr/bin/env bash## List all the current bittorrent nodes#set-e
cd"$(dirname"${0}")"||exit1
../common.sh||exit1# NOTE: JQ can be found at https://stedolan.github.io/jq/RESULT="$(curl-s-H"Accept: application/json; indent=4"https://bitnodes.io/api/v1/snapshots/latest/|jq-r'.nodes|keys[] as $k | "\($k)"'|grep-vonion|grep-v']'|cut-d':'-f1)"
is_str_empty"${RESULT}""String empty, please review this script."