Fail closed when CUSTOM_SERVER download returns an HTTP error (#4258)

Co-authored-by: LCB <me@lbellows.com>
This commit is contained in:
LB
2026-08-31 21:28:45 -05:00
committed by GitHub
co-authored by LCB
parent bbc31603e2
commit 9100b32093
+2 -2
View File
@@ -16,8 +16,8 @@ if isURL "${CUSTOM_SERVER}"; then
log "Using previously downloaded jar at ${SERVER}"
else
log "Downloading custom server jar from ${CUSTOM_SERVER} ..."
if ! curl -sSL -o "${SERVER}" "${CUSTOM_SERVER}"; then
log "Failed to download from ${CUSTOM_SERVER}"
if ! curl -fsSL -o "${SERVER}" "${CUSTOM_SERVER}"; then
logError "Failed to download from ${CUSTOM_SERVER}"
exit 2
fi
fi