Avoid deleting cache when killing a long cdg
This commit is contained in:
parent
211ea5f862
commit
0521c68b06
|
@ -102,9 +102,11 @@ if [ -d "$GCLONE_PATH" ]; then
|
|||
compdef _cdg cdg
|
||||
|
||||
_cdg_refresh_cache() {
|
||||
tmpfile=`mktemp`
|
||||
find $GCLONE_PATH -maxdepth 3 \
|
||||
-not -name ".cdgcache" \
|
||||
-not -name "git" | sort > $GCLONE_PATH/.cdgcache
|
||||
-not -name "git" | sort > $tmpfile
|
||||
mv $tmpfile $GCLONE_PATH/.cdgcache
|
||||
}
|
||||
|
||||
_cdg_existing_dirs() {
|
||||
|
|
Loading…
Reference in New Issue