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>
This commit is contained in:
Leah Rowe
2025-10-17 20:57:18 +01:00
parent 2aea7f6229
commit b840cf3a83

View File

@@ -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