Add dir exist check for git rake helper
This commit is contained in:
parent
cb3a04c708
commit
a51ccde184
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue