diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-12-17 01:31:42 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-12-18 10:21:06 +0100 |
commit | 08ed6b2759f7dbb2caa3c817832bca8a2681461b (patch) | |
tree | 57096b594309402ea300f32f6a21a36147d06998 /bin | |
parent | b052ab6496c5fcdf7ffb8466673902c56ad39c00 (diff) | |
download | jenkins.debian.net-08ed6b2759f7dbb2caa3c817832bca8a2681461b.tar.xz |
reproducible Debian: correctly count number of stale logfiles
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_maintenance.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index d720f3e1..bab44c76 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -409,7 +409,11 @@ if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then TMPFILE=$(mktemp --tmpdir=$TEMPDIR maintenance-XXXXXXXXXXXX) mv $PROBLEM $TMPFILE ( echo "A few entries per day are normal, a few dozens or hundreds probably not." - echo "$(egrep -c '(https://|stale\ builds\ found)' $TMPFILE || true) entries found:" + if grep -q https $TMPFILE ; then + echo "$(grep -c https $TMPFILE) entries found:" + else + echo "$(grep -c 'stale builds found' $TMPFILE || true) entries found:" + fi echo cat $TMPFILE ) | mail -s "$(basename $PROBLEM) found" qa-jenkins-scm@lists.alioth.debian.org rm -f $TMPFILE |