mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Use resolved_path instead of dirname and readlink directly
This commit is contained in:
parent
b29be4c9a5
commit
d88c79f3cf
@ -218,7 +218,7 @@ class Keg < Pathname
|
||||
# it, and the exception that is generated will message to the user about
|
||||
# the situation
|
||||
if dst.symlink? and dst.directory?
|
||||
src = (dst.parent+dst.readlink).cleanpath
|
||||
src = dst.resolved_path
|
||||
keg = Keg.for(src)
|
||||
dst.unlink unless mode.dry_run
|
||||
keg.link_dir(src, mode) { :mkpath }
|
||||
|
Loading…
x
Reference in New Issue
Block a user