aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2009-11-16 09:41:08 -0800
committerAdam Vandenberg2009-11-19 14:03:06 -0800
commit34c213097ee2ef57d196b59efccbbb700375bc92 (patch)
tree0b9fd2f9154c5af9fd288a0ef6bc880ecfe1fcd2 /bin
parent4fbcf13e658eaa0b1a02185c05cd84c5fe7a2567 (diff)
downloadbrew-34c213097ee2ef57d196b59efccbbb700375bc92.tar.bz2
Fix when 'edit' if/else indentation
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/brew b/bin/brew
index 16e07a54a..e6accf4ec 100755
--- a/bin/brew
+++ b/bin/brew
@@ -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'