From 58e22e813390474468acb4fc7329877b95a96233 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 23 Jun 2019 22:42:09 +0200 Subject: [PATCH] instanceinfo.sh: Print links to Mastodon-admin profiles. --- instanceinfo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instanceinfo.sh b/instanceinfo.sh index 1210498..5a90b61 100755 --- a/instanceinfo.sh +++ b/instanceinfo.sh @@ -2,7 +2,7 @@ # Print some basic info about fediverse instances. Install json_pp for prettier # output. -# Version: 2019-06-23_1 +# Version: 2019-06-23_2 if [ -z "${1}" ]; then echo "usage: ${0} DOMAIN" >&2 @@ -75,8 +75,8 @@ function main() striphtml $(grep -Eo '"description":"[^,]+",' <<<"${json}") | cut -d: -f2,3,4,5,6,7,8,9 # shellcheck disable=SC2155 - local admin=$(grep -Eo '"acct":"[^"]+"' <<<"${json}" | cut -d: -f2 | sed 's/"//g')"@${instance}" - [[ -n "${admin}" ]] && echo "Admin: @${admin}" + local admin=$(grep -Eo '"acct":"[^"]+"' <<<"${json}" | cut -d: -f2 | sed 's/"//g') + [[ -n "${admin}" ]] && echo "Admin: https://${instance}/users/${admin}" # shellcheck disable=SC2155 local email=$(grep -Eo '"email":"[^"]+"' <<<"${json}" | cut -d: -f2)