Cleaner: ELF files are executable on Linux

This commit is contained in:
Shaun Jackman 2017-11-22 10:49:41 -08:00
parent 7f1d5903ff
commit 7394208873
2 changed files with 12 additions and 2 deletions

View File

@ -1,2 +1,5 @@
require "cleaner"
require "extend/os/mac/cleaner" if OS.mac?
if OS.mac?
require "extend/os/mac/cleaner"
elsif OS.linux?
require "extend/os/linux/cleaner"
end

View File

@ -0,0 +1,7 @@
class Cleaner
private
def executable_path?(path)
path.elf? || path.text_executable?
end
end