From c6399c89e1619dd0a0c8bc83707372c7e3c06a1a Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Fri, 29 Dec 2023 08:00:34 +0100 Subject: [PATCH] Only set exit code if you haven't set it already. (#4044) https://github.com/sitespeedio/sitespeed.io/issues/3667 --- bin/sitespeed.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/sitespeed.js b/bin/sitespeed.js index 9b764a3c73..bcbd7fcec5 100755 --- a/bin/sitespeed.js +++ b/bin/sitespeed.js @@ -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; }