aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-08-10 18:16:47 +0100
committerMax Howell2009-08-10 18:16:47 +0100
commitdd7bdce89c36f7f45ebc81951d8ed80930e4d8d3 (patch)
tree6c8d7d9232d6e24bdbfc189e80f825e02bf4be87
parente24e46c793c1dd93905e7aeef646388ff27028e6 (diff)
downloadbrew-dd7bdce89c36f7f45ebc81951d8ed80930e4d8d3.tar.bz2
Abort debug install if exit is not zero
-rw-r--r--Library/Homebrew/formula.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index f01798eba..a7bcaf144 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