aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-11-12 01:34:48 +0000
committerMax Howell2009-11-12 01:37:02 +0000
commit55f7b826d910bb5cc937714d214b100eb30073dd (patch)
tree053f976d17aaf764ac1f576b01b48d00e1fa2bf4
parent00e227ac46ff9ff0f329e771e2f0de2932cfa6bc (diff)
downloadbrew-55f7b826d910bb5cc937714d214b100eb30073dd.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.
-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'