From 1609868149c50ee38b3ddd6e5f96699b57fedd52 Mon Sep 17 00:00:00 2001 From: keizie Date: Sat, 30 Nov 2024 11:07:56 +0900 Subject: [PATCH] fix(monolith): quote url when url include ampersand shell fails ``` /bin/sh: 1: amp: not found /bin/sh: 1: -j: not found Uncaught Monolith error... ``` --- lib/api/preservationScheme/handleMonolith.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/preservationScheme/handleMonolith.ts b/lib/api/preservationScheme/handleMonolith.ts index d00850c..b6d0f66 100644 --- a/lib/api/preservationScheme/handleMonolith.ts +++ b/lib/api/preservationScheme/handleMonolith.ts @@ -8,7 +8,7 @@ const handleMonolith = async (link: Link, content: string) => { try { let html = execSync( - `monolith - -I -b ${link.url} ${ + `monolith - -I -b "${link.url}" ${ process.env.MONOLITH_CUSTOM_OPTIONS || "-j -F -s" } -o -`, {