Cleaner: ELF files are executable on Linux
This commit is contained in:
parent
7f1d5903ff
commit
7394208873
@ -1,2 +1,5 @@
|
|||||||
require "cleaner"
|
if OS.mac?
|
||||||
require "extend/os/mac/cleaner" if OS.mac?
|
require "extend/os/mac/cleaner"
|
||||||
|
elsif OS.linux?
|
||||||
|
require "extend/os/linux/cleaner"
|
||||||
|
end
|
||||||
|
|||||||
7
Library/Homebrew/extend/os/linux/cleaner.rb
Normal file
7
Library/Homebrew/extend/os/linux/cleaner.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class Cleaner
|
||||||
|
private
|
||||||
|
|
||||||
|
def executable_path?(path)
|
||||||
|
path.elf? || path.text_executable?
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user