Fixed check
This commit is contained in:
parent
90295c4bef
commit
0ab00d3c36
|
@ -21,7 +21,7 @@ if [ -d "$GCLONE_PATH" ]; then
|
||||||
# Final path to the repo
|
# Final path to the repo
|
||||||
repo_path=$GCLONE_PATH/$server/$user
|
repo_path=$GCLONE_PATH/$server/$user
|
||||||
|
|
||||||
if [ -d $repo_path ]; then
|
if [ -d $repo_path/$repo ]; then
|
||||||
echo "Repository already exists"
|
echo "Repository already exists"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@ -42,7 +42,6 @@ if [ -d "$GCLONE_PATH" ]; then
|
||||||
else
|
else
|
||||||
# If there is a cache, just append the current dir at the end
|
# If there is a cache, just append the current dir at the end
|
||||||
# and sort it back
|
# and sort it back
|
||||||
echo $repo_path
|
|
||||||
echo $repo_path >> $GCLONE_PATH/.cdgcache
|
echo $repo_path >> $GCLONE_PATH/.cdgcache
|
||||||
echo $repo_path/$repo >> $GCLONE_PATH/.cdgcache
|
echo $repo_path/$repo >> $GCLONE_PATH/.cdgcache
|
||||||
cat $GCLONE_PATH/.cdgcache | sort | uniq > $GCLONE_PATH/.cdgcache.tmp
|
cat $GCLONE_PATH/.cdgcache | sort | uniq > $GCLONE_PATH/.cdgcache.tmp
|
||||||
|
|
Loading…
Reference in New Issue