We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e1869e commit de51088Copy full SHA for de51088
lib/explore.js
@@ -23,14 +23,13 @@ function explore (args, cb) {
23
var opts = {cwd: cwd, stdio: 'inherit'}
24
25
var shellArgs = []
26
- if (args) {
+ if (args.length) {
27
if (isWindows) {
28
var execCmd = escapeExecPath(args.shift())
29
var execArgs = [execCmd].concat(args.map(escapeArg))
30
opts.windowsVerbatimArguments = true
31
shellArgs = ['/d', '/s', '/c'].concat(execArgs)
32
} else {
33
- shellArgs.unshift('-c')
34
shellArgs = ['-c', args.map(escapeArg).join(' ').trim()]
35
}
36
0 commit comments