diff --git a/include/git.sh b/include/git.sh index a832030..4e965e0 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