From 55f7b826d910bb5cc937714d214b100eb30073dd Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 12 Nov 2009 01:34:48 +0000 Subject: [PATCH] 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. --- Library/Homebrew/install.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 24fb82148b..69489f3a8e 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'