instanceinfo.sh: Support double-flavours (glitch+barkshark).
This commit is contained in:
parent
0470519ebc
commit
f341ef4de3
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# Print some basic info about fediverse instances.
|
||||
|
||||
# Version: 2019-07-22_2
|
||||
# Version: 2019-07-23_1
|
||||
|
||||
if [[ -z "${1}" ]]; then
|
||||
echo "usage: ${0} DOMAIN" >&2
|
||||
|
@ -98,7 +98,7 @@ function parse_mastodon()
|
|||
implementation="Florence"
|
||||
elif grep -Eq '"version":"[0-9]+\.[0-9]+\.[0-9]+"' <<<"${json}"; then
|
||||
implementation="Mastodon"
|
||||
elif grep -Eq '"version":"[0-9]+\.[0-9]+\.[0-9][\._\-\+]?[a-zA-Z0-9]+"' <<<"${json}"; then
|
||||
elif grep -Eq '"version":"[0-9]+\.[0-9]+\.[0-9][\._\-\+]?[a-zA-Z0-9\_\-\+]+"' <<<"${json}"; then
|
||||
implementation="Mastodon fork"
|
||||
fi
|
||||
if [[ -n "${implementation}" ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user