get.sh: simplify fetch_targets()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-26 13:11:20 +01:00
parent 09b6e91803
commit 671e3aa27b
+2 -3
View File
@@ -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()