get.sh: reduce indendation in fetch_targets

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-11-15 16:51:59 +00:00
parent 9d6af0063b
commit 214ed3efd2

View File

@@ -19,11 +19,12 @@ tmpgitcache="$xbtmp/tmpgit"
fetch_targets()
{
if [ ! -d "src/$project/$tree" ]; then
git_prep "$url" "$bkup_url" \
"$xbmkpwd/$configdir/$tree/patches" \
"src/$project/$tree" "submod"
if [ -d "src/$project/$tree" ]; then
return 0
fi
git_prep "$url" "$bkup_url" "$xbmkpwd/$configdir/$tree/patches" \
"src/$project/$tree" "submod"
}
fetch_project()