[mc] Avoid trying to run forge installer as server

This commit is contained in:
Geoff Bourne 2017-06-06 22:36:39 -05:00
parent 2891e1ac3e
commit 24c68b9c2c

View file

@ -211,7 +211,8 @@ function installForge {
fi fi
# NOTE $shortForgeVersion will be empty if installer location was given to us # NOTE $shortForgeVersion will be empty if installer location was given to us
SERVER=$(ls *forge*$shortForgeVersion*.jar) forgeJars=$(ls *forge*$shortForgeVersion*.jar)
SERVER=${forgeJars/$FORGE_INSTALLER/}
if [ -z $SERVER ]; then if [ -z $SERVER ]; then
echo "Unable to derive server jar for Forge" echo "Unable to derive server jar for Forge"
exit 2 exit 2