More correct "symlink already exists" check
This commit is contained in:
parent
ce1f598e98
commit
8c88d48af7
@ -229,8 +229,8 @@ class Keg < Pathname
|
|||||||
end
|
end
|
||||||
|
|
||||||
def make_relative_symlink dst, src, mode=OpenStruct.new
|
def make_relative_symlink dst, src, mode=OpenStruct.new
|
||||||
if dst.exist? and dst.realpath == src.realpath
|
if dst.symlink? && dst.exist? && dst.resolved_path == src
|
||||||
puts "Skipping; already exists: #{dst}" if ARGV.verbose?
|
puts "Skipping; link already exists: #{dst}" if ARGV.verbose?
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user