bottle: use if-else branch instead of exit

This commit is contained in:
Xu Cheng 2015-09-10 17:03:51 +08:00
parent c7d82a3881
commit fb1789ad3d

View File

@ -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