Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/vendor-node.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ rmSync(tmpDir, { recursive: true, force: true });

function tryExecSync(cmd) {
try {
return execSync(cmd, { stdio: 'inherit' }).toString('utf-8');
return execSync(cmd, { stdio: 'pipe' }).toString('utf-8');
} catch (_) {
return '';
}
Expand Down
7 changes: 5 additions & 2 deletions scripts/vendor-protoc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@ mkdirSync(dstDir, { recursive: true });
chmodSync(binDst, newMode);

console.log('Downloaded protoc to', binDst);
})().catch((err) => console.log('Script failed:', err));
})().catch((err) => {
console.log('Script failed:', err);
process.exit(1);
});

function tryExecSync(cmd) {
try {
return execSync(cmd, { stdio: 'inherit' }).toString('utf-8');
return execSync(cmd, { stdio: 'pipe' }).toString('utf-8');
} catch (_) {
return '';
}
Expand Down