mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-21 14:32:39 +00:00
[mc] Avoid trying to run forge installer as server
This commit is contained in:
1 parent
2891e1ac3e
commit
24c68b9c2c
1 file changed
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user