From bd8d90efa5d920c04e553787db388b8c9589cd4c Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 9 Oct 2020 05:37:30 +0000 Subject: [PATCH] quote params passed to warc2zim, should fix #18 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 34050d7..fff8bfd 100644 --- a/index.js +++ b/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]}" `; } } }