Skip to content

Commit 9320b8e

Browse files
nlfruyadorno
authored andcommitted
only escape arguments, not the command name
PR-URL: #1906 Credit: @nlf Close: #1906 Reviewed-by: @ruyadorno
1 parent 518fa12 commit 9320b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/exec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const exec = async args => {
9090

9191
if (binExists) {
9292
return await runScript({
93-
cmd: args.map(escapeArg).join(' ').trim(),
93+
cmd: [args[0], ...args.slice(1).map(escapeArg)].join(' ').trim(),
9494
banner: false,
9595
// we always run in cwd, not --prefix
9696
path: process.cwd(),

0 commit comments

Comments
 (0)