Force removal of existing dotfiles when installing

This commit is contained in:
Michael Campagnaro 2014-06-25 12:43:05 -04:00
parent 4308c5fb34
commit 3498212521

View File

@ -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