aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-07-29 15:53:05 -0600
committerMike McQuaid2016-07-29 21:21:02 -0600
commita1a8b3faa750d140111a3de63547467274f8a79f (patch)
treeb9567fe92191d8d08c0bfddea995bbe07f95e6a7 /Library/Homebrew
parentebddd65e8cd340f4d35ba731b2c3c9f822eac1e7 (diff)
downloadbrew-a1a8b3faa750d140111a3de63547467274f8a79f.tar.bz2
keg_relocate: don't relocate text files without /usr/bin/file.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/keg_relocate.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index 317320168..823f9bf2c 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -62,6 +62,8 @@ class Keg
def text_files
text_files = []
+ return text_files unless File.exist?("/usr/bin/file")
+
path.find do |pn|
next if pn.symlink? || pn.directory?
next if Metafiles::EXTENSIONS.include? pn.extname