Fixed cdgclone

This commit is contained in:
Thomas Forgione 2019-01-17 13:57:34 +01:00
parent fa12eca0cd
commit 8f350340f9
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 5 additions and 1 deletions

View File

@ -46,11 +46,15 @@ if [ -d "$GCLONE_PATH" ]; then
cat $GCLONE_PATH/.cdgcache | sort | uniq > $GCLONE_PATH/.cdgcache.tmp
mv $GCLONE_PATH/.cdgcache.tmp $GCLONE_PATH/.cdgcache
fi
retval=0
else
retval=1
fi
# Remove the temp dir
rm -rf $tempdir
return $retval
}
cdg() {
@ -95,7 +99,7 @@ if [ -d "$GCLONE_PATH" ]; then
}
cdgclone() {
gclone $1 && cdg $1
gclone $1 && cdg `basename $1`
}
_cdg() {