From 0470519ebcd51fc6051138a0ffd6fb8326b209b6 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 22 Jul 2019 21:42:53 +0200 Subject: [PATCH] instanceinfo.sh: Suppress error messages trying to get nodeinfo. --- instanceinfo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instanceinfo.sh b/instanceinfo.sh index 5f93943..2b9a47b 100755 --- a/instanceinfo.sh +++ b/instanceinfo.sh @@ -1,7 +1,7 @@ #!/bin/bash # Print some basic info about fediverse instances. -# Version: 2019-07-22_1 +# Version: 2019-07-22_2 if [[ -z "${1}" ]]; then echo "usage: ${0} DOMAIN" >&2 @@ -164,7 +164,7 @@ function main() { local instance="${1}" # shellcheck disable=SC2155 - local nodeinfo=$(${mycurl} -L "https://${instance}/.well-known/nodeinfo" | jq -r '.links[].href' | sort | tail -n 1 2> /dev/null) + local nodeinfo=$(${mycurl} -L "https://${instance}/.well-known/nodeinfo" | jq -r '.links[].href' 2> /dev/null | sort | tail -n 1) local mastoinfo="https://${instance}/api/v1/instance" local misskeyinfo="https://${instance}/api/meta"