summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-08-09 07:58:12 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-08-09 07:58:12 +0200
commit5b5562e117360b23624423b3f08a58cb18957482 (patch)
treea3f9ecc105c29410c205872a512715c5141c72ee
parent4fcb8a81f6cad88a9f1d66cff49055e06037167c (diff)
downloadbin-5b5562e117360b23624423b3f08a58cb18957482.zip
bin-5b5562e117360b23624423b3f08a58cb18957482.tar.gz
clean : delete only files type from ccache
-rwxr-xr-xclean2
1 files changed, 1 insertions, 1 deletions
diff --git a/clean b/clean
index 6c31526..ed6f328 100755
--- a/clean
+++ b/clean
@@ -1,4 +1,4 @@
#! /bin/sh
DIR=${1:-$HOME}
echo "clean $DIR" && find $DIR \( -name '*~' -o -name '*swp' -o -name '__MACOSX' -o -name .DS_Store \) -delete
-[ -d $HOME/.ccache ] && echo "clean ~/.cache" && find $HOME/.ccache -atime +15 -delete
+[ -d $HOME/.ccache ] && echo "clean ~/.cache" && find $HOME/.ccache -type f -atime +15 -delete