mach: handle empty otool output.
This commit is contained in:
parent
c5c4684714
commit
02e5f8ed6b
@ -155,6 +155,7 @@ module MachO
|
||||
def parse_otool_L_output
|
||||
ENV["HOMEBREW_MACH_O_FILE"] = path.expand_path.to_s
|
||||
libs = `#{MacOS.locate("otool")} -L "$HOMEBREW_MACH_O_FILE"`.split("\n")
|
||||
return nil, [] if libs.empty?
|
||||
|
||||
libs.shift # first line is the filename
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user