Don't include LinkedKegs or Aliases with brew edit

This commit is contained in:
Max Howell 2011-08-24 14:45:01 +01:00
parent b025fb1397
commit 94abb42567

View File

@ -9,7 +9,7 @@ module Homebrew extend self
exec 'mate', HOMEBREW_REPOSITORY+"bin/brew",
HOMEBREW_REPOSITORY+'README.md',
HOMEBREW_REPOSITORY+".gitignore",
*Dir[HOMEBREW_REPOSITORY+"Library/*"]
*library_folders
else
# Don't use ARGV.formulae as that will throw if the file doesn't parse
paths = ARGV.named.map do |name|
@ -23,4 +23,10 @@ module Homebrew extend self
exec_editor *paths
end
end
def library_folders
Dir["#{HOMEBREW_REPOSITORY}/Library/*"].reject do |d|
case File.basename(d) when 'LinkedKegs', 'Aliases' then true end
end
end
end