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.
This commit is contained in:
parent
00e227ac46
commit
55f7b826d9
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user