diff options
| author | Markus Reiter | 2017-08-08 18:10:01 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-08-08 18:10:01 +0200 |
| commit | b6b8e8863fe70fbdfd0758dd72127de0a96e329f (patch) | |
| tree | 7650db8d8a223351617ad964eeda38ef614756f7 /Library/Homebrew/cask/lib/hbc/container/executable.rb | |
| parent | 93051b27d6886dae6df01544c86df579f21f6410 (diff) | |
| download | brew-b6b8e8863fe70fbdfd0758dd72127de0a96e329f.tar.bz2 | |
Simplify SubversionDownloadStrategy.
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 |
