Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Commit

Permalink
fix(execCmd): only reuse the current process if no shell passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jun 22, 2017
1 parent 6f741c2 commit e413cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function installPackages (specs, prefix, opts) {
function execCommand (existing, argv) {
return checkIfNode(existing).then(isNode => {
const Module = require('module')
if (isNode && Module.runMain) {
if (isNode && Module.runMain && !argv.shell) {
// let it take over the process. This means we can skip node startup!
if (!argv.noYargs) {
// blow away built-up yargs crud
Expand Down

0 comments on commit e413cff

Please sign in to comment.