diff options
| author | Max Howell | 2012-03-09 12:17:36 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-09 12:17:36 +0000 |
| commit | a7ac3c539d3a42c0bb6e38bfbf61ee9c5c0c6615 (patch) | |
| tree | 24f42cfd57588cf1b0d0c0ae5dd6c1bc243fcff6 | |
| parent | af3e5ad979fe69a2c592d11028821f6894c6206c (diff) | |
| download | brew-a7ac3c539d3a42c0bb6e38bfbf61ee9c5c0c6615.tar.bz2 | |
rm bad-dylibs check, brew doctor does this better
| -rw-r--r-- | install_homebrew.rb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/install_homebrew.rb b/install_homebrew.rb index ee58255e8..13f34ba00 100644 --- a/install_homebrew.rb +++ b/install_homebrew.rb @@ -53,19 +53,11 @@ ensure system "/bin/stty -raw echo" end -def badlibs - @badlibs ||= begin - Dir['/usr/local/lib/*.dylib'].select do |dylib| - ENV['dylib'] = dylib - File.file? dylib and not File.symlink? dylib and `/usr/bin/file "$dylib"` =~ /shared library/ - end - end -end - def macos_version @macos_version ||= /(10\.\d+)(\.\d+)?/.match(`/usr/bin/sw_vers -productVersion`).captures.first.to_f end + # The block form of Dir.chdir fails later if Dir.CWD doesn't exist which I # guess is fair enough. Also sudo prints a warning message for no good reason Dir.chdir "/usr" @@ -139,11 +131,5 @@ else warn "Install \"Command Line Tools for Xcode\": http://developer.apple.com/downloads" unless File.file? "/usr/bin/xcrun" end -unless badlibs.empty? - warn "The following *evil* dylibs exist in /usr/local/lib" - puts "They may break builds or worse. You should consider deleting them:" - puts *badlibs -end - ohai "Installation successful!" puts "Now type: brew help" |
