mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user