Added error check on download of GENERIC_PACK

#1017
This commit is contained in:
Geoff Bourne 2021-08-30 21:31:06 -05:00
parent 788548d1f4
commit 179cd878a9

View File

@ -154,7 +154,10 @@ fi
if [[ "${GENERIC_PACK}" ]]; then if [[ "${GENERIC_PACK}" ]]; then
if isURL "${GENERIC_PACK}"; then if isURL "${GENERIC_PACK}"; then
log "Downloading generic pack ..." 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 GENERIC_PACK=/tmp/generic_pack.zip
fi fi