diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index a666702735..8b4c76c767 100644 --- a/Library/Homebrew/keg_relocate.rb +++ b/Library/Homebrew/keg_relocate.rb @@ -163,7 +163,7 @@ class Keg path.find do |pn| next if pn.symlink? or pn.directory? next if Metafiles::EXTENSIONS.include? pn.extname - text_files << pn if Utils.popen_read("/usr/bin/file", pn).include?("text") + text_files << pn if Utils.popen_read("/usr/bin/file", "--brief", pn).include?("text") end text_files