summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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