summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2013-04-12 16:22:24 +0200
committerHolger Levsen <holger@layer-acht.org>2013-04-12 16:22:24 +0200
commit6a9955465493afdaf404130a319d8b1d90e4e38c (patch)
treed83242f06cd0ee50f49c12fff8dadf0b14c5c9fe
parent7e8858ef78fb213a40bc19a7f51623bed327f3eb (diff)
downloadjenkins.debian.net-6a9955465493afdaf404130a319d8b1d90e4e38c.tar.xz
d-i_parse_logs: yesterdays builds are not yet outdated.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/d-i_parse_logs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/d-i_parse_logs.sh b/bin/d-i_parse_logs.sh
index 82eb6526..2fae7370 100755
--- a/bin/d-i_parse_logs.sh
+++ b/bin/d-i_parse_logs.sh
@@ -30,10 +30,10 @@ if [ $(grep -c failed $TMPFILE 2>/dev/null ) -gt 1 ] ; then
for FILE in $(grep failed $TMPFILE | awk '{print $2}' FS=href= | cut -d '"' -f2) ; do
echo Warning: $FILE failed
done
-elif [ $(grep buildd $TMPFILE 2>/dev/null|grep -v "$(date +'%b %d')"|grep -v "See also"|wc -l ) -gt 0 ] ; then
+elif [ $(grep buildd $TMPFILE 2>/dev/null|grep -v "$(date +'%b %d')"|grep -v "$(date --date yesterday +'%b %d')"|grep -v "See also"|wc -l ) -gt 0 ] ; then
echo "Warning: outdated builds:"
figlet outdated builds
- grep buildd $TMPFILE 2>/dev/null|grep -v "$(date +'%b %d')"|grep -v "See also"
+ grep buildd $TMPFILE 2>/dev/null|grep -v "$(date +'%b %d')"| grep -v "$(date --date yesterday +'%b %d')" |grep -v "See also"
else
figlet ok
fi