diff options
author | nlf <quitlahok@gmail.com> | 2020-10-07 00:14:41 +0300 |
---|---|---|
committer | nlf <quitlahok@gmail.com> | 2020-10-07 00:14:41 +0300 |
commit | 8b348e5d9c11d2f79058e1ed95987fd2c6a146b0 (patch) | |
tree | 673dbc9552f375d47542f88307b0cadd23c4d31b | |
parent | dcca0ba60e35a11fd286f4969a0aa8c561fa5bc2 (diff) |
only escape arguments, not the command namenlf/npx-run-existing-bins
-rw-r--r-- | lib/exec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exec.js b/lib/exec.js index a4e9fc16a..5baa9e994 100644 --- a/lib/exec.js +++ b/lib/exec.js @@ -90,7 +90,7 @@ const exec = async args => { if (binExists) { return await runScript({ - cmd: args.map(escapeArg).join(' ').trim(), + cmd: [args[0], ...args.slice(1).map(escapeArg)].join(' ').trim(), banner: false, // we always run in cwd, not --prefix path: process.cwd(), |