Skip to content

Commit bf28743

Browse files
committed
Better check.. only look at the last line
1 parent 09ff185 commit bf28743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cron.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Script to run in cron for production, once puppet has set everything up
44
# Only produces output if the `Result:` line does not contain `PASS`
55

6-
~/bin/metacpan-monitoring-carton exec ~/carton/metacpan-monitoring/bin/swat | grep Result: | grep -v PASS
6+
~/bin/metacpan-monitoring-carton exec ~/carton/metacpan-monitoring/bin/swat | tail -1 | grep -v 'Result: PASS'

0 commit comments

Comments
 (0)