aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2015-07-20 08:33:05 +0100
committerMike McQuaid2015-07-20 08:34:03 +0100
commit5db82b46b18b33d77ede589431abe2c0ec2fd65c (patch)
tree72a767e152b03a4ac86b907f7cd8ff28562615fa
parent842c0227bc7f69211a1feaa6f34c8a85c925c139 (diff)
downloadbrew-5db82b46b18b33d77ede589431abe2c0ec2fd65c.tar.bz2
keg_relocate: don't match "text" in filenames.
-rw-r--r--Library/Homebrew/keg_relocate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index a66670273..8b4c76c76 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