docker-minecraft-server/mcadmin.jq
2019-07-20 15:51:40 -05:00

7 lines
250 B
Text

.[] |
select(.elements | length > 1) |
select(.elements[].elements[] | select(.class == "version" and .text == $version)) |
.elements[].elements[] |
select(.class|contains("server-jar")) |
.elements[] | select(.name="a") |
.href