From 06016d1ef6c83b7763aa50dd34326a563cbe37ff Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sat, 29 Sep 2018 21:46:42 +0200 Subject: [PATCH] Fixed bug --- zsh/gclone.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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