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(" ")