From a832254c4f1d27087837e09bdce5534a4147abbb Mon Sep 17 00:00:00 2001 From: Marcin Panek Date: Thu, 26 Sep 2024 13:42:23 +0200 Subject: [PATCH] Fixed `executeInParallel()` function throwing error when the number of cores is odd. --- scripts/release/utils/parsearguments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/utils/parsearguments.js b/scripts/release/utils/parsearguments.js index ba542dff294..1216263463c 100644 --- a/scripts/release/utils/parsearguments.js +++ b/scripts/release/utils/parsearguments.js @@ -38,7 +38,7 @@ module.exports = function parseArguments( cliArguments ) { default: { nightly: false, 'nightly-alpha': false, - concurrency: require( 'os' ).cpus().length / 2, + concurrency: Math.floor( require( 'os' ).cpus().length / 2 ) || 1, 'compile-only': false, packages: null, branch: 'release',