Merge pull request #26 from 55chevypickup/patch-1

Added the ability to select forge version
This commit is contained in:
Geoff Bourne 2015-05-21 19:49:43 -05:00
commit 6ba5fe29c1

View file

@ -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"