From 5db82b46b18b33d77ede589431abe2c0ec2fd65c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 20 Jul 2015 08:33:05 +0100 Subject: [PATCH] keg_relocate: don't match "text" in filenames. --- Library/Homebrew/keg_relocate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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