Skip to content
Snippets Groups Projects
Commit 16793781 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1269 from MikeMcQuaid/keg-relocate-text-executable-files

keg_relocate: relocate text_executable? files.
parents a812e954 2e306bcd
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,14 @@ class Keg
# http://bugs.gw.com/view.php?id=292
with_custom_locale("C") do
files = path.find.reject { |pn|
pn.symlink? || pn.directory? || Metafiles::EXTENSIONS.include?(pn.extname)
next true if pn.symlink?
next true if pn.directory?
next true if Metafiles::EXTENSIONS.include?(pn.extname)
if pn.text_executable?
text_files << pn
next true
end
false
}
output, _status = Open3.capture2("/usr/bin/xargs -0 /usr/bin/file --no-dereference --brief",
stdin_data: files.join("\0"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment