From dd7bdce89c36f7f45ebc81951d8ed80930e4d8d3 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 10 Aug 2009 18:16:47 +0100 Subject: [PATCH] Abort debug install if exit is not zero --- Library/Homebrew/formula.rb | 1 + 1 file changed, 1 insertion(+) 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