From cbaa0338f448f2405b4458089abd2799ba57983f Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 3 Nov 2024 20:36:30 +0000 Subject: fix: Pass arguments to monolith and yt-dlp as array for better escaping --- apps/workers/crawlerWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/workers/crawlerWorker.ts') diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts index d5bc555e..f607234e 100644 --- a/apps/workers/crawlerWorker.ts +++ b/apps/workers/crawlerWorker.ts @@ -411,7 +411,7 @@ async function archiveWebpage( await execa({ input: html, - })`monolith - -Ije -t 5 -b ${url} -o ${assetPath}`; + })("monolith", ["-", "-Ije", "-t", "5", "-b", url, "-o", assetPath]); const contentType = "text/html"; -- cgit v1.2.3-70-g09d2