From 1cb01d3eb53fd5a0f616dea5d88a4c3c5a232a8e Mon Sep 17 00:00:00 2001 From: Mason Fish Date: Fri, 30 Apr 2021 15:02:03 -0700 Subject: [PATCH] fix quotes for brimcap cli args Signed-off-by: Mason Fish --- plugins/brimcap/brimcap-cli.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/brimcap/brimcap-cli.ts b/plugins/brimcap/brimcap-cli.ts index 5f3aef4ab3..8df3f525f4 100644 --- a/plugins/brimcap/brimcap-cli.ts +++ b/plugins/brimcap/brimcap-cli.ts @@ -63,10 +63,13 @@ export default class BrimcapCLI { private exec(subCommand: string, opts: searchOptions) { const commandWithArgs = [ - this.binPath, + `"${this.binPath}"`, subCommand, ...flatMap( - Object.entries(opts).map(([k, v]) => [`-${OPTION_NAME_MAP[k] || k}`, v]) + Object.entries(opts).map(([k, v]) => [ + `-${OPTION_NAME_MAP[k] || k}`, + `"${v}"` + ]) ) ].join(" ")