aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container/executable.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-07-01 17:57:39 +0200
committerMarkus Reiter2017-08-07 21:31:17 +0200
commitfb59e79689b15d71e6090d0f6f1f39f4d69800b1 (patch)
tree1ecf80aa4ba474c7206e3459d3e7091314431711 /Library/Homebrew/cask/lib/hbc/container/executable.rb
parent69799d97b1e7314912b2ee234dec2c179c5fb969 (diff)
downloadbrew-fb59e79689b15d71e6090d0f6f1f39f4d69800b1.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