diff options
| author | Markus Reiter | 2017-08-07 22:13:10 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-07 22:13:10 +0200 |
| commit | 6ef49d8b86e436cb37df1344019189a2f2df0bbb (patch) | |
| tree | c8acbd7b6986db02f8f49b4116fe4f3d594f3d65 /Library/Homebrew/cask/lib/hbc/container/executable.rb | |
| parent | 69799d97b1e7314912b2ee234dec2c179c5fb969 (diff) | |
| parent | dc5a2c1764b1da3cfa85d8910338eb72cd4da96c (diff) | |
| download | brew-6ef49d8b86e436cb37df1344019189a2f2df0bbb.tar.bz2 | |
Merge pull request #2848 from reitermarkus/refactoring
Refactor SVN and cURL download strategies.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/container/executable.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/container/executable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/container/executable.rb b/Library/Homebrew/cask/lib/hbc/container/executable.rb index 848f6d4be..af3b36fd1 100644 --- a/Library/Homebrew/cask/lib/hbc/container/executable.rb +++ b/Library/Homebrew/cask/lib/hbc/container/executable.rb @@ -8,7 +8,7 @@ module Hbc return true if criteria.magic_number(/^#!\s*\S+/) begin - MachO.open(criteria.path).header.executable? + criteria.path.file? && MachO.open(criteria.path).header.executable? rescue MachO::MagicError false end |
