instanceinfo.sh: Suppress error messages trying to get nodeinfo.
This commit is contained in:
parent
05386f6040
commit
0470519ebc
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user