aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-07-12 19:47:27 +0100
committerGitHub2016-07-12 19:47:27 +0100
commitcdf4f42ab951214fb7fac0781091783552415944 (patch)
tree3765708d024a23aa7ca3545848f6e0f5dec256e9 /Library
parent23306ab434afc185e22a0f357a27e8da687620af (diff)
downloadbrew-cdf4f42ab951214fb7fac0781091783552415944.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cleaner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb
index 6181d3da4..e20d1b7e6 100644
--- a/Library/Homebrew/cleaner.rb
+++ b/Library/Homebrew/cleaner.rb
@@ -67,7 +67,7 @@ class Cleaner
end
def executable_path?(path)
- path.text_executable?
+ path.text_executable? || path.executable?
end
# Clean a top-level (bin, sbin, lib) directory, recursively, by fixing file