From 7f0123ca428c031539cea915380c48f75b4ba67e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 31 Jul 2011 22:02:46 +0200 Subject: [PATCH] don't abort of cpuinfo has the wrong format --- all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2