diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2007-05-31 14:32:48 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2007-05-31 14:32:48 +0200 |
commit | 25e5bcd50892a7e4ae9cee8646b38ace42ca2eb9 (patch) | |
tree | f037afa40b747f5203de96dbfefa81a511175c13 /bin | |
parent | afa9a65636cdc39c7d913a359689cf972c549bee (diff) | |
download | bacon-25e5bcd50892a7e4ae9cee8646b38ace42ca2eb9.tar.gz bacon-25e5bcd50892a7e4ae9cee8646b38ace42ca2eb9.tar.xz bacon-25e5bcd50892a7e4ae9cee8646b38ace42ca2eb9.zip |
Set correct $?
darcs-hash:20070531123248-4fc50-6939b64b785a9f13c4a72f67291ec81e0f56240e.gz
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bacon | 9 |
1 files changed, 8 insertions, 1 deletions
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 |