mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
[mc] glob for forge jar, but exclude installer
This commit is contained in:
parent
24c68b9c2c
commit
e6ca9a1c6d
@ -211,9 +211,17 @@ function installForge {
|
||||
fi
|
||||
|
||||
# NOTE $shortForgeVersion will be empty if installer location was given to us
|
||||
forgeJars=$(ls *forge*$shortForgeVersion*.jar)
|
||||
SERVER=${forgeJars/$FORGE_INSTALLER/}
|
||||
if [ -z $SERVER ]; then
|
||||
for j in *forge*.jar; do
|
||||
case $j in
|
||||
*installer*)
|
||||
;;
|
||||
*)
|
||||
SERVER=$j
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [[ -z $SERVER ]]; then
|
||||
echo "Unable to derive server jar for Forge"
|
||||
exit 2
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user