mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
prevent internal error: write after end
This commit is contained in:
parent
fcab75613f
commit
86e2d57cbc
@ -59,8 +59,8 @@ function execSync(cmd, opts) {
|
||||
" fs.writeFileSync('"+escape(codeFile)+"', err ? err.code.toString() : '0');",
|
||||
"});",
|
||||
"var stdoutStream = fs.createWriteStream('"+escape(stdoutFile)+"');",
|
||||
"childProcess.stdout.pipe(stdoutStream);",
|
||||
"childProcess.stderr.pipe(stdoutStream);",
|
||||
"childProcess.stdout.pipe(stdoutStream, {end: false});",
|
||||
"childProcess.stderr.pipe(stdoutStream, {end: false});",
|
||||
"childProcess.stdout.pipe(process.stdout);",
|
||||
"childProcess.stderr.pipe(process.stderr);"
|
||||
].join('\n');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user