From: PHO Date: Thu, 23 Feb 2012 14:23:39 +0000 (+0900) Subject: detect_number_of_cpus: tiny fix X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=build-hc-pkg.git;a=commitdiff_plain;h=c4272cb4638c1628b2559b0b7374faa4ea532576 detect_number_of_cpus: tiny fix --- diff --git a/build-hc-pkg b/build-hc-pkg index 48e674b..0c9069e 100755 --- a/build-hc-pkg +++ b/build-hc-pkg @@ -12,7 +12,7 @@ function detect_platform_type () { } function detect_number_of_cpus () { - if ! sysctl -n hw.ncpu; then + if ! sysctl -n hw.ncpu 2>/dev/null; then echo "WARNING: I don't know how to detect the number of processors on this platform." >&2 echo "WARNING: GHC will be built using only 1 processor. Expect some slowdown." >&2 echo 1