 57db2e539e
			
		
	
	
		57db2e539e
		
	
	
	
	
		
			
			This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
		
			
				
	
	
		
			19 lines
		
	
	
		
			364 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			364 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require "hbc/container/naked"
 | |
| require "vendor/macho/macho"
 | |
| 
 | |
| module Hbc
 | |
|   class Container
 | |
|     class Executable < Naked
 | |
|       def self.me?(criteria)
 | |
|         return true if criteria.magic_number(/^#!\s*\S+/)
 | |
| 
 | |
|         begin
 | |
|           MachO.open(criteria.path).header.executable?
 | |
|         rescue MachO::MagicError
 | |
|           false
 | |
|         end
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |