Stop startup when a MODPACK zip cannot be extracted (#4254)

Co-authored-by: LCB <me@lbellows.com>
This commit is contained in:
LB
2026-09-01 16:59:22 -05:00
committed by GitHub
co-authored by LCB
parent f4fc9382ca
commit 3eaa1be6fb
+2
View File
@@ -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