From 55dbd72aaf7796f01ad749239fd4874392c9ae22 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 30 Jun 2024 17:56:32 +0100 Subject: git.sh: simplified initialisation of "loc" Signed-off-by: Leah Rowe --- include/git.sh | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1