diff options
| author | Mike McQuaid | 2014-12-11 13:23:44 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-11 13:23:44 +0000 |
| commit | cfeb7f64ffca2afde849434d531fc39dbc053f09 (patch) | |
| tree | 98701c4d9623ac2f7107c855db9c0a8ced32b6fe | |
| parent | d959419aa4408f85b0d75a3f069b0a86c7a71027 (diff) | |
| download | homebrew-cfeb7f64ffca2afde849434d531fc39dbc053f09.tar.bz2 | |
mach: handle empty otool output.
| -rw-r--r-- | Library/Homebrew/mach.rb | 1 |
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 |
