Force removal of existing dotfiles when installing
This commit is contained in:
4
Rakefile
4
Rakefile
@@ -35,12 +35,12 @@ task :install do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create_dotfile_link
|
def create_dotfile_link
|
||||||
system %Q{rm "$HOME/.dotfiles"}
|
system %Q{rm -f "$HOME/.dotfiles"}
|
||||||
system %Q{ln -s $PWD "$HOME/.dotfiles"}
|
system %Q{ln -s $PWD "$HOME/.dotfiles"}
|
||||||
end
|
end
|
||||||
|
|
||||||
def replace_file(file)
|
def replace_file(file)
|
||||||
system %Q{rm "$HOME/.#{file}"}
|
system %Q{rm -r "$HOME/.#{file}"}
|
||||||
link_file(file)
|
link_file(file)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user