aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-11-12 01:34:48 +0000
committerMax Howell2009-11-12 01:37:02 +0000
commit7e0502495fdff7686015802a1c436851f8c876c6 (patch)
treea05a461fa78d2581f64e3c7a4b842bbdbd9a564f /Library
parent70bed072472f61ce15711ab17fafeb2381b9eef5 (diff)
downloadhomebrew-7e0502495fdff7686015802a1c436851f8c876c6.tar.bz2
Check for $! before installing
If an exception is thrown while parsing the formula file before the install.rb at_exit then it will be in $!. Marshal it back to the parent brew process.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/install.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb
index 24fb82148..69489f3a8 100755
--- a/Library/Homebrew/install.rb
+++ b/Library/Homebrew/install.rb
@@ -25,6 +25,8 @@ end
# rb file has to be the running script to allow it to use __END__ and DATA
at_exit do
begin
+ raise $! if $! # an exception was already thrown when parsing the formula
+
require 'extend/ENV'
require 'fileutils'
require 'hardware'