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