add error log of download formula.json

This commit is contained in:
hyuraku 2022-10-12 22:35:08 +09:00
parent e89ae3c84d
commit 8843364123

View File

@ -761,8 +761,11 @@ EOS
--time-cond "${HOMEBREW_CACHE}/api/formula.json" \ --time-cond "${HOMEBREW_CACHE}/api/formula.json" \
--user-agent "${HOMEBREW_USER_AGENT_CURL}" \ --user-agent "${HOMEBREW_USER_AGENT_CURL}" \
"https://formulae.brew.sh/api/formula.json" "https://formulae.brew.sh/api/formula.json"
# TODO: we probably want to print an error if this fails. exit_code=$?
# TODO: set HOMEBREW_UPDATED or HOMEBREW_UPDATE_FAILED if [[ ${exit_code} -ne 0 ]]
then
echo "download formula.json failed!" >>"${update_failed_file}"
fi
fi fi
safe_cd "${HOMEBREW_REPOSITORY}" safe_cd "${HOMEBREW_REPOSITORY}"