From 7e0502495fdff7686015802a1c436851f8c876c6 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 12 Nov 2009 01:34:48 +0000 Subject: 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(+) (limited to 'Library') 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' -- cgit v1.2.3