diff options
| author | Adam Vandenberg | 2010-09-30 06:47:19 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-30 06:47:19 -0700 |
| commit | 0305ee47a743aafa99fa4737fb8b523883dae886 (patch) | |
| tree | 3a8f17d05b74f3b25071252e56d2c594595f3593 /bin | |
| parent | 7adf1c80bd60d51d87836609842c9e575f45ab6a (diff) | |
| download | brew-0305ee47a743aafa99fa4737fb8b523883dae886.tar.bz2 | |
Fix brew edit foo
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -154,11 +154,11 @@ begin "#{HOMEBREW_REPOSITORY}/bin/brew"<< "#{HOMEBREW_REPOSITORY}/README.md" else + require 'formula' # Don't use ARGV.formulae as that will throw if the file doesn't parse paths = ARGV.named.collect do |name| - path = "#{HOMEBREW_REPOSITORY}/Library/Formula/#{ARGV.resolve_alias(name)}.rb" + path = Formula.path(Formula.resolve_alias(name)) unless File.exist? path - require 'formula' raise FormulaUnavailableError, name else path |
