instanceinfo.sh: Don't print Mastodon-admin if it is null.
This commit is contained in:
parent
659ea46373
commit
68bb500ae9
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Print some basic info about fediverse instances.
|
||||
|
||||
# Version: 2019-07-23_2
|
||||
# Version: 2019-07-26_1
|
||||
|
||||
if [[ -z "${1}" ]]; then
|
||||
echo "usage: ${0} DOMAIN" >&2
|
||||
|
@ -122,7 +122,7 @@ function parse_mastodon()
|
|||
|
||||
# shellcheck disable=SC2155
|
||||
local admin=$(jq -r ".contact_account.acct" <<<"${json}")
|
||||
[[ -n "${admin}" ]] && echo "Admin: https://${instance}/users/${admin}"
|
||||
[[ "${admin}" != "null" ]] && echo "Admin: https://${instance}/users/${admin}"
|
||||
|
||||
# shellcheck disable=SC2155
|
||||
local email=$(jq -r ".email" <<<"${json}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user