git.sh: simplified initialisation of "loc"
Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
0cb84a8dd1
commit
55dbd72aaf
|
@ -37,8 +37,7 @@ fetch_project()
|
||||||
|
|
||||||
clone_project()
|
clone_project()
|
||||||
{
|
{
|
||||||
loc="src/$project"
|
loc="src/$project/$project" && singletree "$project" && loc="${loc%/*}"
|
||||||
singletree "$project" || loc="src/$project/$project"
|
|
||||||
|
|
||||||
printf "Downloading project '%s' to '%s'\n" "$project" "$loc"
|
printf "Downloading project '%s' to '%s'\n" "$project" "$loc"
|
||||||
e "$loc" d && return 0
|
e "$loc" d && return 0
|
||||||
|
|
Loading…
Reference in New Issue