IsExecutable

Joel Roth edited this page Apr 30, 2017 · 2 revisions
Clone this wiki locally

Returns 0 (success) if the file looks like a Linux executable (starting with a hash-bang magic or an ELF header), or 1 (failure) otherwise.

This helper is used by the FixAttributes script.