aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2012-04-30 14:08:59 +1000
committerMike McQuaid2012-04-30 21:38:08 +0800
commitfe969c21ad199ae27a113e9fb2f01c5bb3fbc942 (patch)
tree41212e39638bc8598f2a44f7158615aad2ede1f3 /Library/Homebrew/utils.rb
parenta1ce504e7dd1d775d80f05128016d78b5c13383d (diff)
downloadbrew-fe969c21ad199ae27a113e9fb2f01c5bb3fbc942.tar.bz2
Add ofail command and fix bottle command output.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 138050460..3ae8e1181 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -55,6 +55,11 @@ end
def ofail error
onoe error
+ Homebrew.failed = true
+end
+
+def odie error
+ onoe error
exit 1
end