Commit 7fabc8bc authored by Clemens Gruber's avatar Clemens Gruber Committed by Marc Cornellà
Browse files

bundler plugin: Simplify retrieval of cpu count on OSX (#5180)



Calling awk is not necessary here, sysctl has the -n flag to print the value.
Signed-off-by: default avatarClemens Gruber <clemensgru@gmail.com>
parent c62442f9
......@@ -58,7 +58,7 @@ bundle_install() {
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
if [[ "$OSTYPE" = darwin* ]]
then
local cores_num="$(sysctl hw.ncpu | awk '{print $2}')"
local cores_num="$(sysctl -n hw.ncpu)"
else
local cores_num="$(nproc)"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment