summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-11-15 16:51:59 +0000
committerLeah Rowe <leah@libreboot.org>2025-11-15 16:51:59 +0000
commit214ed3efd25cc456f6d6120783b01abc2f3dcd5b (patch)
tree5cb3e59f28ef532287a37abe5ad38956d2e88cbd
parent9d6af0063b627a26e678b646179c2aaeb063e0d6 (diff)
get.sh: reduce indendation in fetch_targets
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/get.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/get.sh b/include/get.sh
index df7e2312..39161a4a 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -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()