summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-06-06 22:54:21 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-06 22:54:21 +0200
commitca1f05897fb22ccdf94e5978f2fab7a96dca978c (patch)
treeaa465d0eecad6359d00162fc0f353bc676d94224 /bin/reproducible_build.sh
parent5a4b26958471fc30137f840627c774703b8afd43 (diff)
downloadjenkins.debian.net-ca1f05897fb22ccdf94e5978f2fab7a96dca978c.tar.xz
make grep more robust
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 72b91c46..c3473032 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -401,7 +401,7 @@ check_suitability() {
build_rebuild() {
FTBFS=1
local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$TMPDIR)
- local NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
+ local NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l)
mkdir b1 b2
set -x
printf "BUILDUSERID=1111\nBUILDUSERNAME=pbuilder1\n" > $TMPCFG