retry all errors

This commit is contained in:
Cat /dev/Nulo 2024-08-28 21:12:34 -03:00
parent 6b98e1eb24
commit 91c7087bdc

View file

@ -150,7 +150,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 --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 $`unzip ${zip} -d ${dir}`;
await rm(zip); await rm(zip);