mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Add a --retry to curl to help avoid transient failures.
This commit is contained in:
parent
98de58dd28
commit
ede7bb6793
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user