aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMike McQuaid2012-03-15 10:57:34 +1300
committerMike McQuaid2012-03-29 18:44:37 +1100
commit48a82e5f023bfc3605306156d7eaa4e029d2d8ea (patch)
tree2c83c0be983a12bf2874e6cc2e911186c478b5fb /bin
parentc6d37fb2372e75108edfb6b036fe0a773cd38213 (diff)
downloadhomebrew-48a82e5f023bfc3605306156d7eaa4e029d2d8ea.tar.bz2
Exit with bad exit code on command failures.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index df0c45d4f..eba542724 100755
--- a/bin/brew
+++ b/bin/brew
@@ -112,4 +112,6 @@ rescue Exception => e
puts " #{Tty.em}#{ISSUES_URL}#{Tty.reset}"
puts e.backtrace
exit 1
+else
+ exit 1 if Homebrew.failed?
end