summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-07 23:41:19 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-07 23:41:19 +0100
commit2e2fe9c5d30427b59e4f1f094f58d54b63f92ba3 (patch)
treed96a7c9a4069f2e95aaf912f024d6d4bac76d70a
parent6ba163a3d57abb5063d4a78697bab07c88dadbff (diff)
downloadjenkins.debian.net-2e2fe9c5d30427b59e4f1f094f58d54b63f92ba3.tar.xz
fix bug
-rwxr-xr-xbin/d-i_parse_logs.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/d-i_parse_logs.sh b/bin/d-i_parse_logs.sh
index e833601d..69d7b6fa 100755
--- a/bin/d-i_parse_logs.sh
+++ b/bin/d-i_parse_logs.sh
@@ -18,13 +18,15 @@ export http_proxy="http://localhost:3128"
TMPFILE=$(mktemp)
curl $1 > $TMPFILE
-grep failed $TMPFILE > /dev/null && {
+if [ $(grep -c failed $TMPFILE >/dev/null 2>&1) -gt 1 ] ; then
figlet Warning:
figlet failed builds:
for FILE in $(grep failed $TMPFILE | awk '{print $2}' FS=href= | cut -d '"' -f2) ; do
echo Warning: $FILE failed
done
-} || figlet ok
+else
+ figlet ok
+fi
echo
echo Check $1 yourself
echo