Merge pull request #18113 from leipert/leipert-patch-2
This commit is contained in:
commit
97286344fa
@ -751,7 +751,12 @@ module Cask
|
|||||||
return unless File.exist?(plist_path)
|
return unless File.exist?(plist_path)
|
||||||
|
|
||||||
plist = system_command!("plutil", args: ["-convert", "xml1", "-o", "-", plist_path]).plist
|
plist = system_command!("plutil", args: ["-convert", "xml1", "-o", "-", plist_path]).plist
|
||||||
plist["CFBundleExecutable"].presence
|
binary = plist["CFBundleExecutable"].presence
|
||||||
|
return unless binary
|
||||||
|
|
||||||
|
binary_path = "#{path}/Contents/MacOS/#{binary}"
|
||||||
|
|
||||||
|
binary_path if File.exist?(binary_path) && File.executable?(binary_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { void }
|
sig { void }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user