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:
Nick Nisi
2012-06-10 23:11:14 -05:00
parent f4d3c1599f
commit 5cbce95989

View File

@@ -32,7 +32,9 @@ end
desc "create all the symlinks"
task :install do
linkables do |linkable, file, target|
`ln -s "$PWD/#{linkable}" "#{target}"`
unless File.exists?(target)
`ln -s "$PWD/#{linkable}" "#{target}"`
end
end
end