diff --git a/src/utils.ts b/src/utils.ts index e7b8436..3cf4d89 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -648,9 +648,11 @@ export async function runShellCommand( let stdout = '' let stderr = '' p.stdout.on('data', data => { + if (stdout.length > 10 * 1024) return stdout += data }) p.stderr.on('data', data => { + if (stderr.length > 10 * 1024) return stderr += data }) p.once('error', err => reject(err))