From dcc764db2195381cfe2633d5e0ad7ff806b5b3ea Mon Sep 17 00:00:00 2001 From: Aikar Date: Tue, 16 Oct 2018 23:55:54 -0400 Subject: [PATCH] [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. --- scripts/decompile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/decompile.sh b/scripts/decompile.sh index b8ed218b36..73cf1d7a9c 100755 --- a/scripts/decompile.sh +++ b/scripts/decompile.sh @@ -25,7 +25,7 @@ versionjson="$workdir/Minecraft/$minecraftversion/$minecraftversion.json" if [ ! -f "$versionjson" ]; then echo "Downloading $minecraftversion JSON Data" 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) curl -o "$versionjson" "$jsonurl" echo "$versionjson - $jsonurl"