PAR: fixed wrong CPU count on OS X
authordberzano <dario.berzano@cern.ch>
Tue, 3 Feb 2015 18:57:26 +0000 (19:57 +0100)
committerdberzano <dario.berzano@cern.ch>
Tue, 3 Feb 2015 18:57:26 +0000 (19:57 +0100)
cmake/PARfiles/BUILD.sh.in

index 7405f39..0b945a9 100644 (file)
@@ -2,7 +2,7 @@
 
 # Automatically generated BUILD.sh for @PARMODULE@
 
-npar=`grep -c bogomips /proc/cpuinfo 2> /dev/null`
+npar=`grep -c bogomips /proc/cpuinfo 2> /dev/null || echo 0`
 if [ "$npar" == 0 ] ; then
   npar=`sysctl hw.ncpu | cut -b10 2> /dev/null`
 fi