mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
include/git: don't re-download single-trees
only do it if the target source tree does not exist Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -98,6 +98,10 @@ clone_project()
|
|||||||
|
|
||||||
loc="${loc#src/}"
|
loc="${loc#src/}"
|
||||||
loc="src/${loc}"
|
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 ${url} "${tmp_git_dir}" || \
|
||||||
git clone ${bkup_url} "${tmp_git_dir}" || \
|
git clone ${bkup_url} "${tmp_git_dir}" || \
|
||||||
|
|||||||
Reference in New Issue
Block a user