instanceinfo.sh: Suppress error messages trying to get nodeinfo.

This commit is contained in:
tastytea 2019-07-22 21:42:53 +02:00
parent 05386f6040
commit 0470519ebc
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -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"