Fixed bug

This commit is contained in:
Thomas Forgione 2018-09-29 21:46:42 +02:00
parent b2eaace5e7
commit 06016d1ef6
1 changed files with 3 additions and 3 deletions

View File

@ -19,16 +19,16 @@ if [ -d "$GCLONE_PATH" ]; then
fi fi
tempdir=`mktemp -d` 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 the clone worked, move the repo in the good place
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# Final path to the repo # Final path to the repo
repo_path=$GCLONE_PATH/$server/$user/$repo repo_path=$GCLONE_PATH/$server/$user/
mkdir -p $repo_path mkdir -p $repo_path
mv $tempdir/repo $repo_path mv $tempdir/$repo $repo_path
fi fi