Fixed cdgclone
This commit is contained in:
parent
fa12eca0cd
commit
8f350340f9
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue