From 777ad31de0d084dc04933f0469b4ceaadcd2c001 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 27 Sep 2020 10:21:33 -0500 Subject: [PATCH] Resolve latest bukkit/spigot directly from getbukkit Fixes #629 #631 --- start-deployBukkitSpigot | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/start-deployBukkitSpigot b/start-deployBukkitSpigot index cb2309e5..96a262e2 100644 --- a/start-deployBukkitSpigot +++ b/start-deployBukkitSpigot @@ -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