summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-06-11 19:31:06 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-11 19:31:06 +0200
commitc25b533d22ad666c08a20d84285212b6fd3c88ee (patch)
tree202c30245fd6f6aa7ee127315fc262eccb67628e /bin
parent6338888290dbdd781d8804b3dd95d4d225641b1f (diff)
downloadjenkins.debian.net-c25b533d22ad666c08a20d84285212b6fd3c88ee.tar.xz
use less pipes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/d-i_build.sh2
-rwxr-xr-xbin/d-i_manual.sh2
2 files changed, 2 insertions, 2 deletions
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
diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh
index 01a9f14b..ce00d909 100755
--- a/bin/d-i_manual.sh
+++ b/bin/d-i_manual.sh
@@ -46,7 +46,7 @@ pdebuild_package() {
# build
#
cd manual
- NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l)
+ NUM_CPU=$(grep -c '^processor' /proc/cpuinfo)
pdebuild --use-pdebuild-internal --debbuildopts "-j$NUM_CPU" -- --http-proxy $http_proxy
#
# publish and cleanup