mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 10:41:00 +00:00
Fixed WORLD cloning when path has spaces
This commit is contained in:
1 parent
56c2f0b466
commit
558544f1e4
1 file changed
+5
-4
@@ -35,15 +35,16 @@ case "X$WORLD" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [[ -d $WORLD ]]; then
|
if [[ -d "$WORLD" ]]; then
|
||||||
if [[ ! -d $worldDest ]]; then
|
if [[ ! -d "$worldDest" ]]; then
|
||||||
log "Cloning world directory from $WORLD ..."
|
log "Cloning world directory from $WORLD ..."
|
||||||
cp -r $WORLD $worldDest
|
cp -r "$WORLD" "$worldDest"
|
||||||
else
|
else
|
||||||
log "Skipping clone from $WORLD since $worldDest exists"
|
log "Skipping clone from $WORLD since $worldDest exists"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
log "Invalid URL given for world: Must be HTTP or HTTPS and a ZIP file"
|
log "World cloning source '$WORLD' doesn't seem to exist"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in new issue
Block a user