Skip to content

Commit 7c2c0de

Browse files
authored
Switch GTNH pack version metadata url to new endpoint (#3955)
1 parent a62be28 commit 7c2c0de

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/start-deployGTNH

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ function getGTNHdownloadPath(){
88
gtnh_download_path=""
99
current_java_version=$(mc-image-helper java-release)
1010

11-
if ! packs_data="$(restify --tag=a https://www.gtnewhorizons.com/version-history/ | jq -r '.[].href | select(test("Server"))')"; then
12-
logError "Failed to retrieve data from http://downloads.gtnewhorizons.com/ServerPacks/?raw"
11+
if ! packs_data="$(
12+
curl -fsSL "https://downloads.gtnewhorizons.com/versions.json" \
13+
| jq -r '.versions[]?.server? | .[]? | select(type=="string" and test("Server"))'
14+
)"; then
15+
logError "Failed to retrieve data from https://downloads.gtnewhorizons.com/versions.json"
1316
exit 1
1417
fi
1518
mapfile -t packs <<< "$packs_data"

0 commit comments

Comments
 (0)