From a7ff598eeadc82683f6ac2b003821266e6c41ed1 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Tue, 9 Sep 2008 14:27:44 +1000 Subject: [PATCH] installing files should also install if the file is a symlink (reinstall) --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 6c855bd..aed081b 100644 --- a/Rakefile +++ b/Rakefile @@ -6,7 +6,9 @@ task :install do Dir['*'].each do |file| next if %w[Rakefile README].include? file - if File.exist?(File.join(ENV['HOME'], ".#{file}")) + original = File.join(ENV['HOME'], ".#{file}") + + if File.exist?(original) || File.symlink?(original) if replace_all replace_file(file) else