Skip to content

Commit

Permalink
refactor runShellCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed May 15, 2024
1 parent 851c559 commit da0b444
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit da0b444

Please sign in to comment.