mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
Merge pull request #690 from flatcar/krnowak/use-curl
sdk_lib: Use curl for downloading SDK tarballs
This commit is contained in:
commit
3f4fe7646c
@ -30,9 +30,9 @@ sdk_download_tarball() {
|
|||||||
info "URL: ${url}"
|
info "URL: ${url}"
|
||||||
for suffix in "${suffixes[@]}"; do
|
for suffix in "${suffixes[@]}"; do
|
||||||
# If all downloads fail, we will detect it later.
|
# If all downloads fail, we will detect it later.
|
||||||
if ! wget --tries=3 --timeout=30 --continue \
|
if ! curl --fail --silent --show-error --location --retry-delay 1 --retry 60 \
|
||||||
-O "${FLATCAR_SDK_TARBALL_PATH}${suffix}" \
|
--retry-connrefused --retry-max-time 60 --connect-timeout 20 \
|
||||||
"${url}${suffix}"; then
|
--output "${FLATCAR_SDK_TARBALL_PATH}${suffix}" "${url}${suffix}"; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user