add error log of download formula.json
This commit is contained in:
parent
e89ae3c84d
commit
8843364123
@ -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}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user