Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 02:50:09 +01:00
[CI-SKIP] Fix build script for version detection
Apparently grep was being greedy even when it shouldn't. This ensures it doesn't be too greedy.
Dieser Commit ist enthalten in:
Ursprung
52ae2a1aec
Commit
dcc764db21
@ -25,7 +25,7 @@ versionjson="$workdir/Minecraft/$minecraftversion/$minecraftversion.json"
|
|||||||
if [ ! -f "$versionjson" ]; then
|
if [ ! -f "$versionjson" ]; then
|
||||||
echo "Downloading $minecraftversion JSON Data"
|
echo "Downloading $minecraftversion JSON Data"
|
||||||
verescaped=$(echo ${minecraftversion} | sed 's/\./\\./g')
|
verescaped=$(echo ${minecraftversion} | sed 's/\./\\./g')
|
||||||
verentry=$(curl -s "https://launchermeta.mojang.com/mc/game/version_manifest.json" | grep -oE "{\"id\": \"${verescaped}\".*?\.json")
|
verentry=$(curl -s "https://launchermeta.mojang.com/mc/game/version_manifest.json" | grep -oE "{\"id\": \"${verescaped}\".*?${verescaped}\.json")
|
||||||
jsonurl=$(echo $verentry | grep -oE https:\/\/.*?\.json)
|
jsonurl=$(echo $verentry | grep -oE https:\/\/.*?\.json)
|
||||||
curl -o "$versionjson" "$jsonurl"
|
curl -o "$versionjson" "$jsonurl"
|
||||||
echo "$versionjson - $jsonurl"
|
echo "$versionjson - $jsonurl"
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren