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