mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 14:16:19 +00:00
retry
This commit is contained in:
parent
3e169a095c
commit
5dbfa0c39c
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ for (const resource of datasetInfo.result.resources) {
|
||||||
console.info(dir);
|
console.info(dir);
|
||||||
try {
|
try {
|
||||||
const zip = join(dir, "zip");
|
const zip = join(dir, "zip");
|
||||||
await $`curl -L -o ${zip} ${resource.url}`;
|
await $`curl --retry 8 --retry-delay 5 -L -o ${zip} ${resource.url}`;
|
||||||
await $`unzip ${zip} -d ${dir}`;
|
await $`unzip ${zip} -d ${dir}`;
|
||||||
await rm(zip);
|
await rm(zip);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue