Fixed bug
This commit is contained in:
parent
b2eaace5e7
commit
06016d1ef6
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue