summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-05-12 13:32:52 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-05-12 13:33:05 +0200
commit28d2a7fc5ac3ce66a94f4dcd7684eda7cf2660a7 (patch)
treefad89cb4d3bada90119bb377cb2070a89d981676
parent3f1db2b6e2699d19f3aec1cde9c4b125fb668ff2 (diff)
downloadbin-28d2a7fc5ac3ce66a94f4dcd7684eda7cf2660a7.zip
bin-28d2a7fc5ac3ce66a94f4dcd7684eda7cf2660a7.tar.gz
clean : cleanup .ccache
-rwxr-xr-xclean1
1 files changed, 1 insertions, 0 deletions
diff --git a/clean b/clean
index f5a2ee0..6c31526 100755
--- a/clean
+++ b/clean
@@ -1,3 +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