summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-26 00:50:06 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-26 00:50:06 +0100
commite981132c829dea9dd958ea174e35e15e122451d7 (patch)
tree5836bcddee19e9a0d8a38ade30d81a306d123d54
parentafc36754b13de41bfbea5ebf5202bdb01cb4aeeb (diff)
get.sh: consolidate printf statements
stick it in git_prep, which both single- and multi-tree projects will use, when downloading git repositories. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/get.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/get.sh b/include/get.sh
index 639d101d..a60e8c36 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -11,8 +11,6 @@ tmpgitcache="$XBMK_CACHE/tmpgit"
fetch_targets()
{
e "src/$project/$tree" d && return 0
-
- printf "Creating %s tree %s\n" "$project" "$tree"
git_prep "$url" "$bkup_url" "$xbmkpwd/$configdir/$tree/patches" \
"src/$project/$tree" with_submodules
}
@@ -35,7 +33,6 @@ clone_project()
{
loc="$XBMK_CACHE/clone/$project" && singletree "$project" && \
loc="src/$project"
- printf "Downloading project '%s' to '%s'\n" "$project" "$loc"
e "$loc" d missing && remkdir "${tmpgit%/*}" && git_prep \
"$url" "$bkup_url" "$xbmkpwd/config/$project/patches" "$loc"; :
@@ -43,6 +40,8 @@ clone_project()
git_prep()
{
+ printf "Creating code directory, src/%s/%s\n" "$project" "$tree"
+
_patchdir="$3"
_loc="$4" # $1 and $2 are gitrepo and gitrepo_backup