From 68bb500ae96b38f284de6807469ab6b53056527c Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 26 Jul 2019 23:24:20 +0200 Subject: [PATCH] instanceinfo.sh: Don't print Mastodon-admin if it is null. --- instanceinfo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instanceinfo.sh b/instanceinfo.sh index ef3c2a6..2ca0d6d 100755 --- a/instanceinfo.sh +++ b/instanceinfo.sh @@ -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}")