From c25b533d22ad666c08a20d84285212b6fd3c88ee Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 11 Jun 2015 19:31:06 +0200 Subject: use less pipes --- bin/d-i_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/d-i_build.sh') diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index 2e189d1f..36c3a525 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -67,7 +67,7 @@ pdebuild_package() { SOURCE=$(dpkg-parsechangelog |grep ^Source: | cut -d " " -f2) # workaround #767260 (console-setup doesn't support parallel build) if [ "$SOURCE" != "console-setup" ] ; then - NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l) + NUM_CPU=$(grep -c '^processor' /proc/cpuinfo) else NUM_CPU=1 fi -- cgit v1.2.3-70-g09d2