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...
```
This commit is contained in:
keizie 2024-11-30 11:07:56 +09:00
parent 95dddd7da0
commit 1609868149

View File

@ -8,7 +8,7 @@ const handleMonolith = async (link: Link, content: string) => {
try { try {
let html = execSync( let html = execSync(
`monolith - -I -b ${link.url} ${ `monolith - -I -b "${link.url}" ${
process.env.MONOLITH_CUSTOM_OPTIONS || "-j -F -s" process.env.MONOLITH_CUSTOM_OPTIONS || "-j -F -s"
} -o -`, } -o -`,
{ {