This commit is contained in:
muratayusuke
2013-06-09 23:10:21 +00:00
committed by thilko
parent b668b7eda2
commit c5b7dd2918
2 changed files with 12 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ class Homesick
say_status :conflict, "#{destination} exists", :red unless options[:quiet]
if options[:force] || shell.file_collision(destination) { source }
system "rm -rf #{destination}" unless options[:pretend]
system "ln -sf #{source} #{destination}" unless options[:pretend]
end
else