Permalink
Browse files

Updated Rakefile

Updated the install task to check if the target symlink/file already
exists. If it does, then do nothing
  • Loading branch information...
1 parent f4d3c15 commit 5cbce9598942bc5bf34ddc4f1c293da05a4a9413 @nicknisi committed Jun 11, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
@@ -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

0 comments on commit 5cbce95

Please sign in to comment.