Permalink
Browse files

Fix symlink loop error

  • Loading branch information...
1 parent 5566363 commit 9986e1c6fd301f125b90405b1eca58efc3e79025 @xuxiaodong committed Apr 17, 2012
Showing with 4 additions and 1 deletion.
  1. +0 −1 _vim/_vim
  2. +4 −0 vimenv
View
View
@@ -23,6 +23,10 @@ def init
FileUtils.mv(target, bak)
end
+ if File.symlink?(target)
+ FileUtils.rm(target)
+ end
+
puts "Symlinking #{orig} to #{target}"
FileUtils.symlink(orig, target, force: true)
end

0 comments on commit 9986e1c

Please sign in to comment.