aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-09-10 17:03:51 +0800
committerXu Cheng2015-09-11 14:17:28 +0800
commitfb1789ad3d0177b4a108636d76b5f3227faa1e08 (patch)
tree3302994521f34369e4e3d3a3f3cc8290297bb6d1 /Library
parentc7d82a388171f56658597ebac21ba4884767e4d2 (diff)
downloadbrew-fb1789ad3d0177b4a108636d76b5f3227faa1e08.tar.bz2
bottle: use if-else branch instead of exit
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/bottle.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 73b071552..6a9d031b3 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -278,14 +278,15 @@ module Homebrew
end
end
end
- exit 0
end
def bottle
- merge if ARGV.include? "--merge"
-
- ARGV.resolved_formulae.each do |f|
- bottle_formula f
+ if ARGV.include? "--merge"
+ merge
+ else
+ ARGV.resolved_formulae.each do |f|
+ bottle_formula f
+ end
end
end
end