aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-04-06 04:19:57 +0200
committerMartin Afanasjew2016-04-09 16:12:17 +0200
commit883751d66658eaf4b14ab01c223dbb85c12036e6 (patch)
treeffd974327cc17d9e633c0d803e01fc3996888e3a /Library
parenteb137dc9248cf3b975b35fae2226c45d3dd9a0ab (diff)
downloadbrew-883751d66658eaf4b14ab01c223dbb85c12036e6.tar.bz2
diagnostic: fix style of previously skipped method
Fix style of previously omitted `check_for_bad_install_name_tool` method to be in line with changes made in #49. Closes #56. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/diagnostic.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index cd5acf5aa..b862cdaea 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -470,15 +470,15 @@ module Homebrew
# otool may not work, for example if the Xcode license hasn't been accepted yet
return if libs.empty?
+ return if libs.include? "/usr/lib/libxcselect.dylib"
- 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.
- This can happen if you install osx-gcc-installer or RailsInstaller.
- To restore it, you must reinstall OS X or restore the binary from
- the OS packages.
+ <<-EOS.undent
+ You have an outdated version of /usr/bin/install_name_tool installed.
+ This will cause binary package installations to fail.
+ This can happen if you install osx-gcc-installer or RailsInstaller.
+ To restore it, you must reinstall OS X or restore the binary from
+ the OS packages.
EOS
- end
end
def __check_subdir_access(base)