git.sh: simplified initialisation of "loc"

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-06-30 17:56:32 +01:00 committed by Leah Rowe
parent a62ad20730
commit 5b24c812a0
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ fetch_project()
clone_project()
{
loc="src/$project"
singletree "$project" || loc="src/$project/$project"
loc="src/$project/$project" && singletree "$project" && loc="${loc%/*}"
printf "Downloading project '%s' to '%s'\n" "$project" "$loc"
e "$loc" d && return 0