]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
don't abort of cpuinfo has the wrong format
authorRudolf Polzer <divVerent@xonotic.org>
Sun, 31 Jul 2011 20:02:46 +0000 (22:02 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sun, 31 Jul 2011 20:02:46 +0000 (22:02 +0200)
all

diff --git a/all b/all
index 58202e4c39e1ca0c40d75e91667b19a63d6f95b4..9af0b7c4db9ad5be1d24b378aa8c7ce1e5f6580c 100755 (executable)
--- 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