mirror of
https://github.com/openzim/zimit.git
synced 2025-09-23 03:52:16 -04:00
quote params passed to warc2zim, should fix #18
This commit is contained in:
parent
e608cbd71e
commit
bd8d90efa5
3
index.js
3
index.js
@ -110,6 +110,7 @@ async function run(params) {
|
||||
await cluster.close();
|
||||
|
||||
// extra wait for all resources to land into WARCs
|
||||
console.log("Waiting 30s to ensure WARCs are finished");
|
||||
await sleep(30000);
|
||||
}
|
||||
|
||||
@ -325,7 +326,7 @@ function runWarc2Zim(params, checkOnly = true) {
|
||||
zimOptsStr += (key.length === 1 ? "-" : "--") + key + " ";
|
||||
|
||||
if (typeof(params[key]) === "string") {
|
||||
zimOptsStr += params[key] + " ";
|
||||
zimOptsStr += `"${params[key]}" `;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user