mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Add --retry to curl invocations in update-traces
This commit is contained in:
parent
5118e7f86b
commit
107f4fdc99
1 changed files with 2 additions and 2 deletions
4
testing/external/scripts/update-traces
vendored
4
testing/external/scripts/update-traces
vendored
|
@ -53,7 +53,7 @@ cat $cfg | while read line; do
|
||||||
|
|
||||||
# Get the fingerprint file.
|
# Get the fingerprint file.
|
||||||
echo Getting $safe_url.md5sum ...
|
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"
|
echo "Error: Could not get $safe_url.md5sum"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ cat $cfg | while read line; do
|
||||||
|
|
||||||
if [ "$download" = "1" ]; then
|
if [ "$download" = "1" ]; then
|
||||||
echo Getting $safe_url ...
|
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"
|
echo "Error: Could not get $safe_url"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue