Skip to content

Commit

Permalink
Only set exit code if you haven't set it already.
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Dec 29, 2023
1 parent c1dda34 commit b81b9df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/sitespeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ async function start() {
}

if (
!budgetFailing ||
(parsed.options.budget && parsed.options.budget.suppressExitCode)
(!budgetFailing ||
(parsed.options.budget && parsed.options.budget.suppressExitCode)) &&
process.exitCode === undefined
) {
process.exitCode = 0;
}
Expand Down

0 comments on commit b81b9df

Please sign in to comment.