mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 06:12:27 +00:00
Merge pull request #255 from mattiaskagstrom/patch-2
only download world if there is no preexisting world
This commit is contained in:
commit
cf8b6e5d05
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
worldDest=/data/$LEVEL
|
||||
|
||||
# If supplied with a URL for a world, download it and unpack
|
||||
if [[ "$WORLD" ]]; then
|
||||
# If no world exists and a URL for a world is supplied, download it and unpack
|
||||
if [[ "$WORLD" ]] && [! -d "$worldDest"]; then
|
||||
case "X$WORLD" in
|
||||
X[Hh][Tt][Tt][Pp]*)
|
||||
echo "Downloading world from $WORLD"
|
||||
|
|
Loading…
Reference in a new issue