From 9100b3209300cf9cdddab286f86b582dbb7de049 Mon Sep 17 00:00:00 2001 From: LB Date: Mon, 31 Aug 2026 22:28:45 -0400 Subject: [PATCH] Fail closed when CUSTOM_SERVER download returns an HTTP error (#4258) Co-authored-by: LCB --- scripts/start-deployCustom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/start-deployCustom b/scripts/start-deployCustom index 386fb2d4..f33ba6b8 100755 --- a/scripts/start-deployCustom +++ b/scripts/start-deployCustom @@ -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