]> gitweb @ CieloNegro.org - build-hc-pkg.git/commitdiff
build-hc-pkg: cosmetic changes
authorPHO <pho@cielonegro.org>
Fri, 16 Mar 2012 08:21:20 +0000 (17:21 +0900)
committerPHO <pho@cielonegro.org>
Fri, 16 Mar 2012 08:21:20 +0000 (17:21 +0900)
build-hc-pkg

index 6e0e1fa59e51d566f1500d86dcec1eff23207f25..868039eb12fdf73432dd9042d2e61be04e0464c2 100755 (executable)
@@ -15,7 +15,7 @@ function detect_number_of_cpus () {
     if sysctl -n "hw.ncpu" 2>/dev/null; then
         # This works for most BSDs.
         :
-    elif grep -qF processor /proc/cpuinfo; then
+    elif grep -qF processor /proc/cpuinfo 2>/dev/null; then
         # Linux sucks...
         grep -cF processor /proc/cpuinfo
     else