From dce423f5fde27558ba553de30a2d9a7ba236f996 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Mon, 7 Oct 2024 19:14:35 -0700 Subject: [PATCH] path --- functions/clone.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/clone.zsh b/functions/clone.zsh index b35a0a9..15c7132 100644 --- a/functions/clone.zsh +++ b/functions/clone.zsh @@ -10,7 +10,7 @@ repo_clone() { suffix=".git" mkdir -p "${output_path%"$suffix"}" - if [ ! -d "$output_path/.git" ]; then + if [ ! -d "${output_path%"$suffix"}/.git" ]; then repourl=$(echo "$repo_prefix@$cleaned" | sed -e "s/\//:/1") echo "Cloning $repourl to ${output_path%"$suffix"}..." git clone "$repourl" "${output_path%"$suffix"}"