diff options
| author | Adam Vandenberg | 2009-11-16 09:41:08 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2009-11-19 14:03:06 -0800 |
| commit | 8f3ff696652b95dedc4f8d322d0949925680f595 (patch) | |
| tree | 13e09397c90e0d5620cda87e53ac31dcef601d84 | |
| parent | ef39adab33d8cb7491e29a9d91f1c67294af25e8 (diff) | |
| download | homebrew-8f3ff696652b95dedc4f8d322d0949925680f595.tar.bz2 | |
Fix when 'edit' if/else indentation
| -rwxr-xr-x | bin/brew | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -113,18 +113,18 @@ begin exec 'mate', *Dir["#{HOMEBREW_REPOSITORY}/Library/*"]<< "#{HOMEBREW_REPOSITORY}/bin/brew"<< "#{HOMEBREW_REPOSITORY}/README.md" - else - # we don't use ARGV.formulae as that will throw if the file doesn't parse - paths = ARGV.named.collect do |name| - unless File.exist? path = "#{HOMEBREW_REPOSITORY}/Library/Formula/#{name}.rb" - require 'formula' - raise FormulaUnavailableError, name - else - path + else + # we don't use ARGV.formulae as that will throw if the file doesn't parse + paths = ARGV.named.collect do |name| + unless File.exist? path = "#{HOMEBREW_REPOSITORY}/Library/Formula/#{name}.rb" + require 'formula' + raise FormulaUnavailableError, name + else + path + end end + exec_editor *paths end - exec_editor *paths - end when 'up', 'update' require 'update' |
