mirror of https://github.com/bjeanes/dotfiles.git
installing files should also install if the file is a symlink (reinstall)
parent
8f7a5b5acb
commit
a7ff598eea
4
Rakefile
4
Rakefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue