mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-03-04 07:07:12 +00:00
parent
8b977f8786
commit
777ad31de0
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ function downloadSpigot {
|
|||
;;
|
||||
esac
|
||||
|
||||
if [[ ${VERSION^^} = LATEST ]]; then
|
||||
VANILLA_VERSION=$(restify https://getbukkit.org/download/spigot --attribute='property=og:title' | jq -r '.[0] | .attributes | select(.property == "og:title") | .content | split(" ") | .[-1]')
|
||||
fi
|
||||
|
||||
if [[ -z $downloadUrl ]]; then
|
||||
downloadUrl="https://cdn.getbukkit.org/${getbukkitFlavor}/${getbukkitFlavor}-${VANILLA_VERSION}.jar"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue