diff options
| author | Misty De Meo | 2012-07-20 12:01:37 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-07-20 12:03:31 -0500 |
| commit | ba2d17b8d1e282ec6747efc1a4c9999b46c70ddc (patch) | |
| tree | ec273b9ed27d62762d6e1a3c3211f7c984629817 /Library/Homebrew | |
| parent | 4c38d151100bd1293a668bfa11d7c38abe7c72c2 (diff) | |
| download | brew-ba2d17b8d1e282ec6747efc1a4c9999b46c70ddc.tar.bz2 | |
Keg#unlink: Don't try to unlink if keg is unlinked
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/keg.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 027b9d458..1e12d712e 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -29,6 +29,8 @@ class Keg < Pathname def unlink n=0 + return n if !linked? + %w[bin etc lib include sbin share var].map{ |d| self/d }.each do |src| next unless src.exist? src.find do |src| |
