diff --git a/zsh/gclone.zsh b/zsh/gclone.zsh index affd4b5..58b98a9 100644 --- a/zsh/gclone.zsh +++ b/zsh/gclone.zsh @@ -19,16 +19,16 @@ if [ -d "$GCLONE_PATH" ]; then fi tempdir=`mktemp -d` - git clone $1 $tempdir/repo + git clone $1 $tempdir/$repo # If the clone worked, move the repo in the good place if [ $? -eq 0 ]; then # Final path to the repo - repo_path=$GCLONE_PATH/$server/$user/$repo + repo_path=$GCLONE_PATH/$server/$user/ mkdir -p $repo_path - mv $tempdir/repo $repo_path + mv $tempdir/$repo $repo_path fi