Fix brew edit foo
This commit is contained in:
parent
7adf1c80bd
commit
0305ee47a7
4
bin/brew
4
bin/brew
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user