get.sh: reduce indentation in clone_project

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

View File

@@ -53,17 +53,18 @@ fetch_project()
clone_project()
{
if singletree "$project"; then
loc="src/$project"
if [ -d "$loc" ]; then
return 0
fi
remkdir "${tmpgit%/*}"
git_prep "$url" "$bkup_url" \
"$xbmkpwd/config/$project/patches" "$loc"
if ! singletree "$project"; then
return 0
fi
loc="src/$project"
if [ -d "$loc" ]; then
return 0
fi
remkdir "${tmpgit%/*}"
git_prep "$url" "$bkup_url" "$xbmkpwd/config/$project/patches" "$loc"
}
git_prep()