From 1ab8f11ab2bc66e98d81bbd06cdcf9f476a74e38 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 10 Dec 2018 11:05:49 +0100 Subject: [PATCH] Tried to fix gclone --- zsh/gclone.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/gclone.zsh b/zsh/gclone.zsh index 6b00f2e..016778d 100644 --- a/zsh/gclone.zsh +++ b/zsh/gclone.zsh @@ -32,8 +32,8 @@ if [ -d "$GCLONE_PATH" ]; then # If the clone worked, move the repo in the good place if [ $? -eq 0 ]; then - mkdir -p `dirname $repo_path` - mv $tempdir/$repo $repo_path + mkdir -p $repo_path + mv $tempdir/$repo $repo_path/$repo if [ ! -f $GCLONE_PATH/.cdgcache ]; then # If there is no cache, generate the cache manually