summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 2d31a523..1ceffff0 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -68,7 +68,7 @@ explain "Jenkins jobs updated."
#
# crappy tests for checking that jenkins-job-builder works correctly
#
-DEFINED_TRIGGERS=$(grep -c _trigger: *.yaml)
+DEFINED_TRIGGERS=$(grep _trigger: *.yaml|wc -l)
CONFIGURED_TRIGGERS=$(grep -C 1 \<hudson.tasks.BuildTrigger /var/lib/jenkins/jobs/*/config.xml|grep child|wc -l)
if [ "$DEFINED_TRIGGERS" != "$CONFIGURED_TRIGGERS" ] ; then
figlet Warning