mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 18:43:37 +00:00
Added true fallback to num_cpu_cores SunOS case
This commit is contained in:
parent
5149c53165
commit
dc145fa5a2
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ num_cpu_cores() {
|
|||
num="$(sysctl -n hw.ncpu 2>/dev/null || true)"
|
||||
;;
|
||||
SunOS )
|
||||
num="$(getconf NPROCESSORS_ONLN 2>/dev/null)"
|
||||
num="$(getconf NPROCESSORS_ONLN 2>/dev/null || true)"
|
||||
;;
|
||||
* )
|
||||
num="$({ getconf _NPROCESSORS_ONLN ||
|
||||
|
|
Loading…
Reference in a new issue