instanceinfo: Remove duplicate if block.
This commit is contained in:
parent
17296d1709
commit
2ca244c36a
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Print some basic info about fediverse instances.
|
||||
|
||||
# Version: 2019-11-12_1
|
||||
# Version: 2020-06-08_1
|
||||
|
||||
if [[ -z "${1}" ]]; then
|
||||
echo "usage: ${0} DOMAIN" >&2
|
||||
|
@ -88,10 +88,8 @@ function parse_nodeinfo()
|
|||
echo -n " / "
|
||||
jq -r ".metadata.library.tracks.total" <<<"${json}"
|
||||
elif [[ "${implementation}" == "mastodon" ]]; then
|
||||
if [[ "${implementation}" == "mastodon" ]]; then
|
||||
echo -e "\nUsing Mastodon API additionally."
|
||||
parse_mastodon ${instance} "https://${instance}/api/v1/instance"
|
||||
fi
|
||||
echo -e "\nUsing Mastodon API additionally."
|
||||
parse_mastodon ${instance} "https://${instance}/api/v1/instance"
|
||||
elif [[ "${implementation}" == "pixelfed" ]]; then
|
||||
echo "Further info, maybe: https://${instance}/site/terms"
|
||||
elif [[ "${implementation}" == "peertube" ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user