mirror of
https://github.com/bensuperpc/dockcross.git
synced 2026-10-25 19:25:05 +01:00
Improve curl with retry on error
Improve curl with retry on error Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
1 parent
77da067e8e
commit
501b1b84dc
7 files changed
+59
-9
No files matched your search
@@ -25,7 +25,12 @@ cd /usr/src
|
||||
|
||||
url="https://mirrors.edge.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz"
|
||||
echo "Downloading $url"
|
||||
curl -# -LO $url
|
||||
curl --connect-timeout 20 \
|
||||
--max-time 10 \
|
||||
--retry 5 \
|
||||
--retry-delay 10 \
|
||||
--retry-max-time 40 \
|
||||
-# -LO $url
|
||||
|
||||
tar xvzf git-${GIT_VERSION}.tar.gz --no-same-owner
|
||||
rm -f git-${GIT_VERSION}.tar.gz
|
||||
|
||||
Reference in new issue
Block a user