Fix overriding existing symlinks that point to directories.
This commit is contained in:
@@ -86,7 +86,7 @@ class Homesick
|
||||
say_status :conflict, "#{destination} exists and points to #{destination.readlink}", :red unless options[:quiet]
|
||||
|
||||
if options[:force] || shell.file_collision(destination) { source }
|
||||
system "ln -sf #{source} #{destination}" unless options[:pretend]
|
||||
system "ln -nsf #{source} #{destination}" unless options[:pretend]
|
||||
end
|
||||
end
|
||||
elsif destination.exist?
|
||||
|
||||
Reference in New Issue
Block a user