Add --retry to curl invocations in update-traces

This commit is contained in:
Tim Wojtulewicz 2022-05-13 11:54:27 -07:00
parent 5118e7f86b
commit 107f4fdc99

View file

@ -53,7 +53,7 @@ cat $cfg | while read line; do
# Get the fingerprint file.
echo Getting $safe_url.md5sum ...
eval "$proxy curl $auth -fsS --anyauth $url.md5sum -o $fp.tmp" || {
eval "$proxy curl $auth -fsS --anyauth --retry 2 $url.md5sum -o $fp.tmp" || {
echo "Error: Could not get $safe_url.md5sum"
exit 1
}
@ -71,7 +71,7 @@ cat $cfg | while read line; do
if [ "$download" = "1" ]; then
echo Getting $safe_url ...
eval "$proxy curl $auth -f --anyauth $url -o $file" || {
eval "$proxy curl $auth --retry 2 -f --anyauth $url -o $file" || {
echo "Error: Could not get $safe_url"
exit 1
}