Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8813ceb

Browse filesBrowse files
committed
Cant use stdio inherit and stash a result away
1 parent 9a29577 commit 8813ceb
Copy full SHA for 8813ceb

1 file changed

+2-1Lines changed: 2 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/run-sequence.js‎

Copy file name to clipboardExpand all lines: scripts/run-sequence.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ const cp = require("child_process");
55
* @param {[string, string[]][]} tasks
66
* @param {cp.SpawnSyncOptions} opts
77
*/
8-
function runSequence(tasks, opts = { timeout: 100000, shell: true, stdio: "inherit" }) {
8+
function runSequence(tasks, opts = { timeout: 100000, shell: true }) {
99
let lastResult;
1010
for (const task of tasks) {
1111
console.log(`${task[0]} ${task[1].join(" ")}`);
1212
const result = cp.spawnSync(task[0], task[1], opts);
1313
if (result.status !== 0) throw new Error(`${task[0]} ${task[1].join(" ")} failed: ${result.stderr && result.stderr.toString()}`);
14+
console.log(result.stdout && result.stdout.toString());
1415
lastResult = result;
1516
}
1617
return lastResult && lastResult.stdout && lastResult.stdout.toString();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.