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

Commit

Permalink
fix(sh): oops -- wrong argument count for script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Nov 2, 2018
1 parent ea38dd6 commit 854a8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function main (argv) {
['-r', require.resolve('../node'), ...(argv.nodeArg || []), ...(argv.script ? [argv.script, ...(argv.arguments || [])] : [])],
{ stdio: 'inherit' }
)
} else if (argv._.length) {
} else if (argv._.length > 1) {
const Module = require('module')
require('clear-module').all()
process.argv = [
Expand Down

0 comments on commit 854a8f1

Please sign in to comment.