mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-03 20:55:05 +00:00
Stop startup when a MODPACK zip cannot be extracted (#4254)
Co-authored-by: LCB <me@lbellows.com>
This commit is contained in:
@@ -77,11 +77,13 @@ if [[ "$MODPACK" ]]; then
|
||||
mkdir -p "$PLUGINS_OUT_DIR"
|
||||
if ! unzip -o -d "$PLUGINS_OUT_DIR" /tmp/modpack.zip; then
|
||||
logError "Failed to unzip the modpack from ${MODPACK}"
|
||||
exit 2
|
||||
fi
|
||||
else
|
||||
mkdir -p "$MODS_OUT_DIR"
|
||||
if ! unzip -o -d "$MODS_OUT_DIR" /tmp/modpack.zip; then
|
||||
logError "Failed to unzip the modpack from ${MODPACK}"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
rm -f /tmp/modpack.zip
|
||||
|
||||
Reference in New Issue
Block a user