Skip to content

Commit

Permalink
fix quotes for brimcap cli args
Browse files Browse the repository at this point in the history
Signed-off-by: Mason Fish <mason@looky.cloud>
  • Loading branch information
Mason Fish committed Apr 30, 2021
1 parent 6078840 commit 1cb01d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/brimcap/brimcap-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ")

Expand Down

0 comments on commit 1cb01d3

Please sign in to comment.