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
commit0cbdeeaa3c02c3e46e75e8b6e0a3333f78639d5a (patch)
tree24a095d4b06d9d8aaafd93e100b283b1b1cd1a52 /bin
parent61444ee3a60234c4bae9565ccd1ff5dd17bdad51 (diff)
downloadbrew-0cbdeeaa3c02c3e46e75e8b6e0a3333f78639d5a.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