We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de1255a commit 01afbf8Copy full SHA for 01afbf8
src/libpostal_data
@@ -51,7 +51,7 @@ kill_background_processes() {
51
trap kill_background_processes INT
52
53
PART_MSG='echo "Downloading part $1: filename=$5, offset=$2, max=$3"'
54
-PART_CURL='curl $4 --silent -H"Range:bytes=$2-$3" -o $5'
+PART_CURL='curl $4 --silent -H"Range:bytes=$2-$3" --retry 3 --retry-delay 2 -o $5'
55
DOWNLOAD_PART="$PART_MSG;$PART_CURL"
56
57
@@ -112,7 +112,7 @@ download_file() {
112
if [ $content_length -ge $LARGE_FILE_SIZE ]; then
113
download_multipart $url $local_path $content_length
114
else
115
- curl $url -o $local_path
+ curl $url --retry 3 --retry-delay 2 -o $local_path
116
fi
117
118
if date -ur . >/dev/null 2>&1; then
0 commit comments