don't abort of cpuinfo has the wrong format

This commit is contained in:
Rudolf Polzer 2011-07-31 22:02:46 +02:00
parent 38373bf7fc
commit 7f0123ca42

2
all
View File

@ -1035,7 +1035,7 @@ case "$cmd" in
fi fi
if [ -z "$MAKEFLAGS" ]; then if [ -z "$MAKEFLAGS" ]; then
if [ -f /proc/cpuinfo ]; then if [ -f /proc/cpuinfo ]; then
ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0)) ncpus=$((`grep -c '^processor :' /proc/cpuinfo || true`+0))
if [ $ncpus -gt 1 ]; then if [ $ncpus -gt 1 ]; then
MAKEFLAGS=-j$ncpus MAKEFLAGS=-j$ncpus
fi fi