From 349821252121e1afc3474782fad9c2d78a0798d9 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 25 Jun 2014 12:43:05 -0400 Subject: [PATCH] Force removal of existing dotfiles when installing --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 2c937ba..43ce207 100644 --- a/Rakefile +++ b/Rakefile @@ -35,12 +35,12 @@ task :install do end def create_dotfile_link - system %Q{rm "$HOME/.dotfiles"} + system %Q{rm -f "$HOME/.dotfiles"} system %Q{ln -s $PWD "$HOME/.dotfiles"} end def replace_file(file) - system %Q{rm "$HOME/.#{file}"} + system %Q{rm -r "$HOME/.#{file}"} link_file(file) end