summaryrefslogtreecommitdiff
path: root/include/get.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-17 20:57:18 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-17 20:57:18 +0100
commitb840cf3a832de815a87d9d10b698eec97aceb342 (patch)
treefcbe90c33d523c7b2bf1ab607d54be6919c02a02 /include/get.sh
parent2aea7f622949ecdc9b1a434eff8c789a357e4c67 (diff)
get.sh: don't frivolously copy tmp git clones
this fixes a regression in a previous patch, this time also taking account for the different cache locations. all of get.sh needs to be purged, and re-written clean. it looks clean. but it's years of hacks. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/get.sh')
-rw-r--r--include/get.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/get.sh b/include/get.sh
index e3e4c311..959bdd6e 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -53,9 +53,11 @@ fetch_project()
clone_project()
{
- # if loc is blank, don't create a target
- # directory; just update the caches
- loc=""
+ loc="$XBMK_CACHE/clone/${url#*://}"
+ if [ "$XBMK_CACHE_MIRROR" = "y" ]; then
+ loc="$XBMK_CACHE/mirror/${url#*://}"
+ fi
+
if singletree "$project"; then
loc="src/$project"
fi