From 25e5bcd50892a7e4ae9cee8646b38ace42ca2eb9 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 31 May 2007 14:32:48 +0200 Subject: Set correct $? darcs-hash:20070531123248-4fc50-6939b64b785a9f13c4a72f67291ec81e0f56240e.gz --- bin/bacon | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/bacon b/bin/bacon index d898345..8e78bca 100755 --- a/bin/bacon +++ b/bin/bacon @@ -93,7 +93,14 @@ end require 'bacon' Bacon.extend Bacon.const_get(output) -at_exit { Bacon.handle_summary } +at_exit { + Bacon.handle_summary + if $! + raise $! + elsif Bacon::Counter[:errors] + Bacon::Counter[:failed] > 0 + exit 1 + end +} files.each { |file| load file -- cgit 1.4.1