mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-25 18:46:23 +00:00
Added the ability to select forge version
Added the ability to select forge version by adding -e FORGEVERSION=10.13.3.1403-1.7.10 or -e FORGEVERSION=RECOMMENDED
This commit is contained in:
@@ -53,7 +53,16 @@ case $TYPE in
|
||||
;;
|
||||
esac
|
||||
|
||||
FORGE_VERSION=`wget -O - http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json | jsawk -n "out(this.promos['$norm-recommended'])"`
|
||||
echo "Checking Forge version information."
|
||||
case $FORGEVERSION in
|
||||
RECOMMENDED)
|
||||
FORGE_VERSION=`wget -O - http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json | jsawk -n "out(this.promos['$norm-recommended'])"`
|
||||
;;
|
||||
|
||||
*)
|
||||
FORGE_VERSION=$FORGEVERSION
|
||||
;;
|
||||
esac
|
||||
|
||||
normForgeVersion="$norm-$FORGE_VERSION"
|
||||
FORGE_INSTALLER="forge-$normForgeVersion-installer.jar"
|
||||
|
||||
Reference in New Issue
Block a user