Fix brew unlink
Whoops.
This commit is contained in:
parent
69672ca965
commit
1e55c1f580
@ -30,6 +30,7 @@ class Keg < Pathname
|
||||
def unlink
|
||||
n=0
|
||||
%w[bin etc lib include sbin share var].map{ |d| self/d }.each do |src|
|
||||
src.find do |src|
|
||||
next if src == self
|
||||
dst=HOMEBREW_PREFIX+src.relative_path_from(self)
|
||||
next unless dst.symlink?
|
||||
@ -39,6 +40,7 @@ class Keg < Pathname
|
||||
n+=1
|
||||
Find.prune if src.directory?
|
||||
end
|
||||
end
|
||||
linked_keg_record.unlink if linked_keg_record.exist?
|
||||
n
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user