From dc145fa5a22b54da2bd6a68f45d0b1c45b7d471f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20Limkj=C3=A6r?= Date: Fri, 15 Dec 2017 09:19:15 +0100 Subject: [PATCH] Added true fallback to num_cpu_cores SunOS case --- plugins/python-build/bin/python-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 82b2c498..449c63e1 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -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 ||