From 236d66c8741e401cf35f77e579b1fdda66fa7e79 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 4 Dec 2018 18:27:57 +0100 Subject: [PATCH] Fixed weird gclone bug --- zsh/gclone.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zsh/gclone.zsh b/zsh/gclone.zsh index 653a3f5..6b00f2e 100644 --- a/zsh/gclone.zsh +++ b/zsh/gclone.zsh @@ -32,8 +32,7 @@ if [ -d "$GCLONE_PATH" ]; then # If the clone worked, move the repo in the good place if [ $? -eq 0 ]; then - mkdir -p $repo_path - + mkdir -p `dirname $repo_path` mv $tempdir/$repo $repo_path if [ ! -f $GCLONE_PATH/.cdgcache ]; then