only download world if there is no preexisting world

My world just got overwritten when i re-created the container. this should hopefully solve it..
This commit is contained in:
Mattias Kågström 2018-10-07 14:01:08 +02:00 committed by GitHub
parent 6e3761ae91
commit 3bac706b8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"