cleaner: fix generic executable handling. (#498)

Don't unset things that are already set as executable for the generic path.
OS X overrides this behaviour and detects if it's an MachO executable but
there's no cross-OS generic equivalent so just fall back to whatever the build
system has set.
This commit is contained in:
Mike McQuaid 2016-07-12 19:47:27 +01:00 committed by GitHub
parent 23306ab434
commit cdf4f42ab9

View File

@ -67,7 +67,7 @@ class Cleaner
end end
def executable_path?(path) def executable_path?(path)
path.text_executable? path.text_executable? || path.executable?
end end
# Clean a top-level (bin, sbin, lib) directory, recursively, by fixing file # Clean a top-level (bin, sbin, lib) directory, recursively, by fixing file