FIX brew edit foo

This commit is contained in:
Max Howell 2009-07-31 01:15:58 +01:00
parent 71a78b0e56
commit 4ac760779e

View File

@ -64,7 +64,7 @@ def abv keg=nil
if path.directory? if path.directory?
`find #{path} -type f | wc -l`.strip+' files, '+`du -hd0 #{path} | cut -d"\t" -f1`.strip `find #{path} -type f | wc -l`.strip+' files, '+`du -hd0 #{path} | cut -d"\t" -f1`.strip
else else
nil ''
end end
end end
@ -205,7 +205,8 @@ begin
if ARGV.empty? if ARGV.empty?
exec "mate #{$formula} #{$root}/Library/Homebrew #{$root}/bin/brew #{$root}/README" exec "mate #{$formula} #{$root}/Library/Homebrew #{$root}/bin/brew #{$root}/README"
else else
paths=extract_kegs.collect {|keg| keg.formula_path.to_s.gsub ' ', '\\ '} require 'formula'
paths=extract_named_args.collect {|name| Formula.path(name).to_s.gsub ' ', '\\ '}
exec "mate #{paths.join ' '}" exec "mate #{paths.join ' '}"
end end