From 68eed83700ac385f412896ed7b78bfb2c124435e Mon Sep 17 00:00:00 2001 From: Matt Meigs Date: Wed, 15 Nov 2023 16:16:26 -0500 Subject: [PATCH] quotations --- src/commands/src/shared/next-gen-parse.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/src/shared/next-gen-parse.ts b/src/commands/src/shared/next-gen-parse.ts index c74be1609..c3b133a5c 100644 --- a/src/commands/src/shared/next-gen-parse.ts +++ b/src/commands/src/shared/next-gen-parse.ts @@ -17,16 +17,18 @@ export async function nextGenParse({ logger, id, }: NextGenParseParams): Promise { - const commandArgs = ['build', repoDir, '--output', `${repoDir}/bundle.zip`, RSTSPEC_FLAG]; + const commandArgs = ['build', `"${repoDir}"`, '--output', `"${repoDir}/bundle.zip"`]; if (patchId && commitHash) { commandArgs.push('--commit'); - commandArgs.push(commitHash); + commandArgs.push(`"${commitHash}"`); commandArgs.push('--patch'); commandArgs.push(patchId); } + commandArgs.push(RSTSPEC_FLAG); + logger.save(id, `COMMAND for parse: ${commandArgs.join(' ')}`); return executeCliCommand({ command: 'snooty', args: commandArgs });