diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-20 09:12:23 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-20 09:12:23 +0100 |
commit | 73145b7980a4d1c70933aeba0672615e776811bc (patch) | |
tree | b95969ed6304f26f12acd08bb17438bee94947ab | |
parent | 31b35bb4ceb785a5649d25d7fcf68c93da82bcde (diff) |
Revert "Revert "include/git: don't re-download single-trees""
This reverts commit baa3d4f217863ff34c03d54c4014f53812ae12ec.
-rwxr-xr-x | include/git.sh | 4 |
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}" || \ |