summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinclude/git.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/git.sh b/include/git.sh
index a6ce1cbf..5fa54211 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -98,6 +98,10 @@ clone_project()
loc="${loc#src/}"
loc="src/${loc}"
+ if [ -d "${loc}" ]; then
+ printf "%s already exists, so skipping download\n" 1>&2
+ return 0
+ fi
git clone ${url} "${tmp_git_dir}" || \
git clone ${bkup_url} "${tmp_git_dir}" || \