Merge pull request #157 from mruwek/verbose-symlink-conflicts

Don't overwrite silently on symlink conflicts
This commit is contained in:
Jeremy Cook
2017-03-19 22:02:41 -04:00
committed by GitHub

View File

@@ -68,8 +68,10 @@ module Homesick
"#{destination} exists and points to #{destination.readlink}",
:red
if collision_accepted?(destination, source)
FileUtils.rm destination
FileUtils.ln_s source, destination, force: true unless options[:pretend]
end
when :conflict
say_status :conflict, "#{destination} exists", :red