diff options
| author | JCount | 2017-08-07 17:33:12 -0400 |
|---|---|---|
| committer | GitHub | 2017-08-07 17:33:12 -0400 |
| commit | ae1986ac910a888ceda5a0b18d14a3b3b7bcb446 (patch) | |
| tree | e39a40888f007b39909711a76075ae822ab364ae /Library/Homebrew/cask/lib/hbc/container/executable.rb | |
| parent | 6ef49d8b86e436cb37df1344019189a2f2df0bbb (diff) | |
| parent | 986887b413897413266151c92d5071d0a82cf966 (diff) | |
| download | brew-ae1986ac910a888ceda5a0b18d14a3b3b7bcb446.tar.bz2 | |
Merge pull request #3018 from Homebrew/revert-2848-refactoring
Revert "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 af3b36fd1..848f6d4be 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 - criteria.path.file? && MachO.open(criteria.path).header.executable? + MachO.open(criteria.path).header.executable? rescue MachO::MagicError false end |
