aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_relocate.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index 8b4c76c76..04e542141 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -163,7 +163,10 @@ 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", "--brief", pn).include?("text")
+ if Utils.popen_read("/usr/bin/file", "--brief", pn).include?("text") ||
+ pn.text_executable?
+ text_files << pn
+ end
end
text_files