Skip to content

Commit af9233b

Browse files
authored
Build: Fix gradle build for Mac OS (#35968)
Remove trailing line feed from the output of the command to get the number of CPUs. Follow up to: #35789
1 parent 49087f1 commit af9233b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ class BuildPlugin implements Plugin<Project> {
910910
args '-n', 'hw.physicalcpu'
911911
standardOutput = stdout
912912
}
913-
return stdout.toString('UTF-8')
913+
return stdout.toString('UTF-8').trim();
914914
}
915915
return 'auto';
916916
}

0 commit comments

Comments
 (0)