mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
parent
e2bf56938b
commit
488e478374
@ -91,22 +91,16 @@ if [ ! -e $installMarker ]; then
|
|||||||
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
|
||||||
echo "Finding installed server jar..."
|
echo "Finding installed server jar..."
|
||||||
for j in *forge*.jar; do
|
unset -v latest
|
||||||
echo "...$j"
|
for file in *forge*.jar; do
|
||||||
case $j in
|
[[ $file =~ installer ]] || [[ $file -nt $latest ]] && latest=$file
|
||||||
*installer*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
export SERVER=$j
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
done
|
||||||
if [[ -z $SERVER ]]; then
|
if [[ -z $latest ]]; then
|
||||||
echo "Unable to derive server jar for Forge"
|
echo "Unable to derive server jar for Forge"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export SERVER=$latest
|
||||||
echo "Using server $SERVER"
|
echo "Using server $SERVER"
|
||||||
echo $SERVER > $installMarker
|
echo $SERVER > $installMarker
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user