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)