Skip to content
Snippets Groups Projects
Commit 02e5f8ed authored by Mike McQuaid's avatar Mike McQuaid
Browse files

mach: handle empty otool output.

parent c5c46847
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment