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