Tap#unlink_manpages: fix symlink path
This commit is contained in:
parent
7efae4635b
commit
ef7a5cfa3a
@ -196,7 +196,7 @@ class Tap
|
|||||||
return unless (path/"man").exist?
|
return unless (path/"man").exist?
|
||||||
(path/"man").find do |src|
|
(path/"man").find do |src|
|
||||||
next if src.directory?
|
next if src.directory?
|
||||||
dst = HOMEBREW_PREFIX/src.relative_path_from(path)
|
dst = HOMEBREW_PREFIX/"share"/src.relative_path_from(path)
|
||||||
dst.delete if dst.symlink? && src == dst.resolved_path
|
dst.delete if dst.symlink? && src == dst.resolved_path
|
||||||
dst.parent.rmdir_if_possible
|
dst.parent.rmdir_if_possible
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user