From 6fec93aae2d2f801812c5d634fcb5f2886029166 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 10 Dec 2016 00:08:41 +0100 Subject: reproducible Debian: count lines, to indicate size of the problem --- bin/reproducible_maintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 115e79de..f2001256 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -408,7 +408,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then if [ -s $PROBLEM ] ; 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 ; cat $TMPFILE ) | mail -s "$(basename $PROBLEM) found" qa-jenkins-scm@lists.alioth.debian.org + ( echo "A few entries per day are normal, a few dozens or hundreds probably not." ; echo ; echo "$(cat $TMPFILE | wc -l) lines." ; cat $TMPFILE ) | mail -s "$(basename $PROBLEM) found" qa-jenkins-scm@lists.alioth.debian.org rm -f $TMPFILE fi done -- cgit v1.2.3-70-g09d2