From ede7bb6793c2a42d85969581d12269b6d7e98195 Mon Sep 17 00:00:00 2001 From: David McMahon Date: Thu, 17 Mar 2016 17:16:40 -0700 Subject: [PATCH] Add a --retry to curl to help avoid transient failures. --- hack/update-godep-licenses.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/update-godep-licenses.sh b/hack/update-godep-licenses.sh index 4fa81cb7c23..d3d1a6c231f 100755 --- a/hack/update-godep-licenses.sh +++ b/hack/update-godep-licenses.sh @@ -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