Skip to content
Snippets Groups Projects
Commit 55f7b826 authored by Max Howell's avatar Max Howell
Browse files

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.
parent 00e227ac
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment