diff options
| author | Markus Reiter | 2017-08-08 19:26:33 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-08 19:26:33 +0200 |
| commit | 1a30c165bfb82ae846e64c508f06455e0d3f285e (patch) | |
| tree | ab63c314bed39e41dfe47273902ca14c15515c23 /Library/Homebrew/cask/lib/hbc/container/executable.rb | |
| parent | 93051b27d6886dae6df01544c86df579f21f6410 (diff) | |
| parent | ae4bafdb365cfa380d129b0a03bd99a1e4d960a4 (diff) | |
| download | brew-1a30c165bfb82ae846e64c508f06455e0d3f285e.tar.bz2 | |
Merge pull request #3026 from reitermarkus/refactor-download-strategies
Refactor 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 |
