diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index 3173201689..823f9bf2cf 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