mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 06:14:14 +00:00
ignore duplicate entries in the targets array of version.json (#698)
This commit is contained in:
parent
32abf1614f
commit
c458823014
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ else
|
|||
fi
|
||||
|
||||
isDebugging && cat version.json
|
||||
forgeVersion=$(jq -r '.targets[] | select(.name == "forge") | .version' version.json)
|
||||
mcVersion=$(jq -r '.targets[] | select(.name == "minecraft") | .version' version.json)
|
||||
forgeVersion=$(jq -r '.targets|unique[] | select(.name == "forge") | .version' version.json)
|
||||
mcVersion=$(jq -r '.targets|unique[] | select(.name == "minecraft") | .version' version.json)
|
||||
|
||||
variants=(
|
||||
forge-${mcVersion}-${forgeVersion}.jar
|
||||
|
|
Loading…
Reference in a new issue