From 179cd878a9bc76d64e683f80e0c2051d642d669f Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 30 Aug 2021 21:31:06 -0500 Subject: [PATCH] Added error check on download of GENERIC_PACK #1017 --- start-finalSetupModpack | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start-finalSetupModpack b/start-finalSetupModpack index 4e956070..855233e2 100644 --- a/start-finalSetupModpack +++ b/start-finalSetupModpack @@ -154,7 +154,10 @@ fi if [[ "${GENERIC_PACK}" ]]; then if isURL "${GENERIC_PACK}"; then log "Downloading generic pack ..." - curl -fsSL -o /tmp/generic_pack.zip "${GENERIC_PACK}" + if ! curl -fsSL -o /tmp/generic_pack.zip "${GENERIC_PACK}"; then + log "ERROR: failed to download ${GENERIC_PACK}" + exit 2 + fi GENERIC_PACK=/tmp/generic_pack.zip fi