Updated Rakefile
Updated the install task to check if the target symlink/file already exists. If it does, then do nothing
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -32,8 +32,10 @@ end
|
|||||||
desc "create all the symlinks"
|
desc "create all the symlinks"
|
||||||
task :install do
|
task :install do
|
||||||
linkables do |linkable, file, target|
|
linkables do |linkable, file, target|
|
||||||
|
unless File.exists?(target)
|
||||||
`ln -s "$PWD/#{linkable}" "#{target}"`
|
`ln -s "$PWD/#{linkable}" "#{target}"`
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "remove all files added"
|
desc "remove all files added"
|
||||||
|
|||||||
Reference in New Issue
Block a user