instanceinfo.sh: Typo: pass “${instance}”, not “instance”.
This commit is contained in:
parent
f40b7d9812
commit
17296d1709
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Print some basic info about fediverse instances.
|
# Print some basic info about fediverse instances.
|
||||||
|
|
||||||
# Version: 2019-09-30_1
|
# Version: 2019-11-12_1
|
||||||
|
|
||||||
if [[ -z "${1}" ]]; then
|
if [[ -z "${1}" ]]; then
|
||||||
echo "usage: ${0} DOMAIN" >&2
|
echo "usage: ${0} DOMAIN" >&2
|
||||||
|
@ -90,7 +90,7 @@ function parse_nodeinfo()
|
||||||
elif [[ "${implementation}" == "mastodon" ]]; then
|
elif [[ "${implementation}" == "mastodon" ]]; then
|
||||||
if [[ "${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
|
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"
|
||||||
|
|
Loading…
Reference in New Issue