From 3230d47b4f9b314fe4a20255de8e4a9c1306ae3d Mon Sep 17 00:00:00 2001 From: Holger Just Date: Wed, 2 Feb 2011 14:29:33 +0100 Subject: [PATCH] Fix install rake --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index f61c821..9a2277f 100644 --- a/Rakefile +++ b/Rakefile @@ -9,7 +9,7 @@ namespace :install do full = File.join Dir.pwd, file Dir.chdir ENV["HOME"] do mkdir_p File.dirname(file) - sh "rm #{file}" if (File.exist? file and File.directory? full) + File.delete(file) if (File.exist? file and File.directory? full) sh "ln -sf #{full} #{file}" end end @@ -18,7 +18,7 @@ namespace :install do end install :irb, ".irbrc", ".config/irb/*.rb" - install :dot, ".bash_profile", ".bashrc", ".gemrc", ".vimrc", ".vim", ".gitignore", ".gitconfig" + install :dot, ".bash_profile", ".bashrc", ".gemrc", ".vimrc", ".vim", ".gitignore", ".global_gitconfig" install :bin, "bin/*" desc "installs the custom texmf folder"