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