diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-30 17:56:32 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-30 17:56:32 +0100 |
commit | 55dbd72aaf7796f01ad749239fd4874392c9ae22 (patch) | |
tree | 2659af14680b37363839ec303eb58f8c07d5a270 /include/git.sh | |
parent | 0cb84a8dd12117029cd1c1511f400b6ec5abacb1 (diff) |
git.sh: simplified initialisation of "loc"
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/git.sh')
-rwxr-xr-x | include/git.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh index a832030a..4e965e04 100755 --- a/include/git.sh +++ b/include/git.sh @@ -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 |