fix: pass stdin to child process on -I

Fixes #1036 - the no-stdin wasn't passing the process.stdin to the
child.
This commit is contained in:
Remy Sharp
2017-12-20 19:51:32 +00:00
parent 1e2516de4a
commit b642aacfad

View File

@@ -32,9 +32,11 @@ function run(options) {
var stdio = ['pipe', 'pipe', 'pipe'];
if (config.options.stdout) {
stdio = ['pipe',
process.stdout,
process.stderr,];
stdio = ['pipe', process.stdout, process.stderr];
}
if (config.options.stdin === false) {
stdio = [process.stdin, process.stdout, process.stderr];
}
var sh = 'sh';