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