Add a --retry to curl to help avoid transient failures.

This commit is contained in:
David McMahon 2016-03-17 17:16:40 -07:00
parent 98de58dd28
commit ede7bb6793

View File

@ -131,7 +131,8 @@ process_content () {
for f in ${remote_files[@]}; do
file_state "${package_root_url}/master/${f}" && continue
if ! FILE_CONTENT[${package}-${type}]="$(\
curl --fail -s https://${package_root_url}/master/${f})" || \
curl --fail --retry 10 -s \
https://${package_root_url}/master/${f})" || \
! $(echo "${FILE_CONTENT[${package}-${type}]-}" |\
egrep -qw "${ensure_pattern}") ||
[[ "${FILE_CONTENT[${package}-${type}]-}" =~ \<\ *html ]] ; then