aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-12-11 13:23:44 +0000
committerMike McQuaid2014-12-11 13:23:44 +0000
commit02e5f8ed6b9618023e8adb372f8431e63e9666ba (patch)
tree94df30e5cbb108d8af874e78d67afd5b2719faae
parentc5c4684714fffe5d4ea610097a51467ecd6432e1 (diff)
downloadbrew-02e5f8ed6b9618023e8adb372f8431e63e9666ba.tar.bz2
mach: handle empty otool output.
-rw-r--r--Library/Homebrew/mach.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/mach.rb b/Library/Homebrew/mach.rb
index 8da667acd..0a0a3e289 100644
--- a/Library/Homebrew/mach.rb
+++ b/Library/Homebrew/mach.rb
@@ -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