Merge pull request #255 from mattiaskagstrom/patch-2

only download world if there is no preexisting world
This commit is contained in:
Geoff Bourne 2018-10-07 09:45:26 -05:00 committed by GitHub
commit cf8b6e5d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,8 @@
worldDest=/data/$LEVEL worldDest=/data/$LEVEL
# If supplied with a URL for a world, download it and unpack # If no world exists and a URL for a world is supplied, download it and unpack
if [[ "$WORLD" ]]; then if [[ "$WORLD" ]] && [! -d "$worldDest"]; then
case "X$WORLD" in case "X$WORLD" in
X[Hh][Tt][Tt][Pp]*) X[Hh][Tt][Tt][Pp]*)
echo "Downloading world from $WORLD" echo "Downloading world from $WORLD"