summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-26 13:11:20 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-26 13:11:20 +0100
commit671e3aa27b402f04543cf016565421021d97c27d (patch)
tree801b599f12c2be325af7884fe5ad708d4fbe4ec2
parent09b6e91803d4112ae22d31313a5fdbe8afe79707 (diff)
get.sh: simplify fetch_targets()
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 00768f0b..d32452ff 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -10,9 +10,8 @@ tmpgitcache="$XBMK_CACHE/tmpgit"
fetch_targets()
{
- e "src/$project/$tree" d && return 0
- git_prep "$url" "$bkup_url" "$xbmkpwd/$configdir/$tree/patches" \
- "src/$project/$tree" with_submodules
+ [ -d "src/$project/$tree" ] || git_prep "$url" "$bkup_url" \
+ "$xbmkpwd/$configdir/$tree/patches" "src/$project/$tree" submod; :
}
fetch_project()