From: Rudolf Polzer Date: Sun, 31 Jul 2011 20:02:46 +0000 (+0200) Subject: don't abort of cpuinfo has the wrong format X-Git-Tag: xonotic-v0.5.0~45^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7f0123ca428c031539cea915380c48f75b4ba67e;p=xonotic%2Fxonotic.git don't abort of cpuinfo has the wrong format --- diff --git a/all b/all index 58202e4c..9af0b7c4 100755 --- a/all +++ b/all @@ -1035,7 +1035,7 @@ case "$cmd" in fi if [ -z "$MAKEFLAGS" ]; 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 MAKEFLAGS=-j$ncpus fi