summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-03 12:51:52 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-03 12:51:52 +0100
commit6dc16c1ff1d527ed053dee15cce86dc7d9ef3a8e (patch)
treef30e7c918a815d73e98ac4a4c4c359150cd2909f /update_jdn.sh
parent2094fd7cc5050b9cc0343694c746503499f49d54 (diff)
downloadjenkins.debian.net-6dc16c1ff1d527ed053dee15cce86dc7d9ef3a8e.tar.xz
fixup: count correctly
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 41fd8426..e910f5b1 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -83,7 +83,7 @@ explain "Jenkins jobs updated."
# crappy tests for checking that jenkins-job-builder works correctly
#
#wc -m counts one byte too many, so we substract one
-let DEFINED_MY_TRIGGERS=$(grep my_trigger: *.yaml|wc -l)+(grep my_trigger: *.yaml|grep , |xargs echo | sed 's/[^,]//g'| wc -m)-1
+let DEFINED_MY_TRIGGERS=$(grep my_trigger: *.yaml|wc -l)+$(grep my_trigger: *.yaml|grep , |xargs echo | sed 's/[^,]//g'| wc -m)-1
DEFINED_DI_TRIGGERS=$(grep "defaults: d-i-manual-html" d-i.yaml|wc -l)
let DEFINED_TRIGGERS=DEFINED_MY_TRIGGERS+DEFINED_DI_TRIGGERS
let CONFIGURED_TRIGGERS=$(grep \<childProjects /var/lib/jenkins/jobs/*/config.xml|wc -l)+$(grep \<childProjects /var/lib/jenkins/jobs/*/config.xml |grep , |xargs echo | sed 's/[^,]//g'| wc -m)-1