diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index f01798eba6..a7bcaf1442 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -104,6 +104,7 @@ class AbstractFormula puts "Type `exit' and Homebrew will attempt to finalize the installation" puts "If nothing is installed to #{prefix}, then Homebrew will abort" interactive_shell + raise "Non-zero exit status, installation aborted" if $? != 0 end end end