mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-22 22:49:30 +02:00
get.sh: reduce indentation in clone_project
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+11
-10
@@ -53,17 +53,18 @@ fetch_project()
|
|||||||
|
|
||||||
clone_project()
|
clone_project()
|
||||||
{
|
{
|
||||||
if singletree "$project"; then
|
if ! singletree "$project"; then
|
||||||
loc="src/$project"
|
return 0
|
||||||
|
|
||||||
if [ -d "$loc" ]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
remkdir "${tmpgit%/*}"
|
|
||||||
git_prep "$url" "$bkup_url" \
|
|
||||||
"$xbmkpwd/config/$project/patches" "$loc"
|
|
||||||
fi
|
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()
|
git_prep()
|
||||||
|
|||||||
Reference in New Issue
Block a user