mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Keg#unlink: Don't try to unlink if keg is unlinked
This commit is contained in:
parent
4c38d15110
commit
ba2d17b8d1
@ -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|
|
||||
|
Loading…
x
Reference in New Issue
Block a user