Unverified Commit 5481719b by SHIBATA Hiroshi Committed by GitHub

Merge pull request #1162 from klimkjar/fix-illumos

Fix rbenv install on Solaris / Illumos
parents 81a4cd64 6d6725a8
......@@ -153,6 +153,9 @@ num_cpu_cores() {
Darwin | *BSD )
num="$(sysctl -n hw.ncpu 2>/dev/null || true)"
;;
SunOS )
num="$(getconf NPROCESSORS_ONLN 2>/dev/null || true)"
;;
* )
num="$({ getconf _NPROCESSORS_ONLN ||
grep -c ^processor /proc/cpuinfo; } 2>/dev/null)"
......
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