aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container/executable.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-08-08 18:10:01 +0200
committerMarkus Reiter2017-08-08 18:10:01 +0200
commitb6b8e8863fe70fbdfd0758dd72127de0a96e329f (patch)
tree7650db8d8a223351617ad964eeda38ef614756f7 /Library/Homebrew/cask/lib/hbc/container/executable.rb
parent93051b27d6886dae6df01544c86df579f21f6410 (diff)
downloadbrew-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.rb2
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