diff --git a/contrib/offline/manage-offline-files.sh b/contrib/offline/manage-offline-files.sh index 875bd5609..60c7928b4 100755 --- a/contrib/offline/manage-offline-files.sh +++ b/contrib/offline/manage-offline-files.sh @@ -17,7 +17,12 @@ rm -rf "${OFFLINE_FILES_DIR}" rm "${OFFLINE_FILES_ARCHIVE}" mkdir "${OFFLINE_FILES_DIR}" -wget -x -P "${OFFLINE_FILES_DIR}" -i "${FILES_LIST}" +while read -r url; do + if ! wget -x -P "${OFFLINE_FILES_DIR}" "${url}"; then + exit 1 + fi +done < "${FILES_LIST}" + tar -czvf "${OFFLINE_FILES_ARCHIVE}" "${OFFLINE_FILES_DIR_NAME}" [ -n "$NO_HTTP_SERVER" ] && echo "skip to run nginx" && exit 0