From 5cbce9598942bc5bf34ddc4f1c293da05a4a9413 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Sun, 10 Jun 2012 23:11:14 -0500 Subject: [PATCH] Updated Rakefile Updated the install task to check if the target symlink/file already exists. If it does, then do nothing --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a02ada0..1d979a4 100644 --- a/Rakefile +++ b/Rakefile @@ -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