mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-23 06:00:30 +00:00
unzip fails if a file already exists in the zip file.
Unzipping world replace banned-ips.json? [y]es, [n]o, [A]ll, [N]one, [r]ename: unzip: can't read standard input
This commit is contained in:
@@ -7,7 +7,7 @@ case "X$WORLD" in
|
|||||||
echo "Downloading world from $WORLD"
|
echo "Downloading world from $WORLD"
|
||||||
curl -sSL -o - "$WORLD" > /data/world.zip
|
curl -sSL -o - "$WORLD" > /data/world.zip
|
||||||
echo "Unzipping world"
|
echo "Unzipping world"
|
||||||
unzip -q /data/world.zip
|
unzip -o -q /data/world.zip
|
||||||
rm -f /data/world.zip
|
rm -f /data/world.zip
|
||||||
if [ ! -d /data/world ]; then
|
if [ ! -d /data/world ]; then
|
||||||
echo World directory not found
|
echo World directory not found
|
||||||
|
|||||||
Reference in New Issue
Block a user