add retries to curl when fetching bundles

This commit is contained in:
vyzo 2022-04-14 19:18:49 +03:00
parent 1c1d8e0626
commit 65de3e7f6c

View File

@ -34,7 +34,7 @@ fetch() {
return 0
else
echo "fetching $cid to $output"
curl -k "https://$dweb/ipfs/$cid" -o "$output"
curl --retry 3 -k "https://$dweb/ipfs/$cid" -o "$output"
check "$output" "$hash" || die "hash mismatch"
fi
}