diff options
| author | Jack Nagel | 2014-10-07 17:23:09 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-07 17:23:09 -0500 |
| commit | c0591b7beac6cf9eff5c7f83d856107b47fd6826 (patch) | |
| tree | 81d4287f12312e0d91c7aa086f167331d7a8b76c /Library | |
| parent | cee74ecfb9c3e5ef1509bc837c13e3ae5dda4b6a (diff) | |
| download | homebrew-c0591b7beac6cf9eff5c7f83d856107b47fd6826.tar.bz2 | |
Fix install_name_tool check when Xcode license isn't accepted yet
Fixes #32712.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 2910d05b7..29decd0eb 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -349,7 +349,11 @@ end def check_for_bad_install_name_tool return if MacOS.version < "10.9" - libs = `otool -L /usr/bin/install_name_tool` + libs = Pathname.new("/usr/bin/install_name_tool").dynamically_linked_libraries + + # otool may not work, for example if the Xcode license hasn't been accepted yet + return if libs.empty? + unless libs.include? "/usr/lib/libxcselect.dylib" then <<-EOS.undent You have an outdated version of /usr/bin/install_name_tool installed. This will cause binary package installations to fail. |
