From 2e2fe9c5d30427b59e4f1f094f58d54b63f92ba3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 7 Nov 2012 23:41:19 +0100 Subject: fix bug --- bin/d-i_parse_logs.sh | 6 ++++-- 1 file 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 -- cgit v1.2.3-70-g09d2