installing files should also install if the file is a symlink (reinstall)

pull/2/head
Bodaniel Jeanes 2008-09-09 14:27:44 +10:00
parent 8f7a5b5acb
commit a7ff598eea
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ task :install do
Dir['*'].each do |file| Dir['*'].each do |file|
next if %w[Rakefile README].include? 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 if replace_all
replace_file(file) replace_file(file)
else else