From a51ccde184747017b42d4cd5727d9d1fd5c2a1ae Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 21 Jun 2014 04:05:51 -0400 Subject: [PATCH] Add dir exist check for git rake helper --- rake/lib/git.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rake/lib/git.rb b/rake/lib/git.rb index 8ba57e75..027a40e8 100644 --- a/rake/lib/git.rb +++ b/rake/lib/git.rb @@ -1,7 +1,9 @@ include Rake::DSL def git(url,dest) - sh "git clone #{url} #{dest}" unless Dir.exists?(dest) + if not Dir.exists?(dest) + sh "git clone #{url} #{dest}" unless Dir.exists?(dest) + end end def github(repo,dest)