summaryrefslogtreecommitdiff
path: root/bin/cache-clean
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cache-clean')
-rwxr-xr-xbin/cache-clean4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/cache-clean b/bin/cache-clean
new file mode 100755
index 0000000..2083475
--- /dev/null
+++ b/bin/cache-clean
@@ -0,0 +1,4 @@
+#!/bin/bash
+DIR=$(dirname $0)
+find $DIR/../cache/$1 -not -name .git\* -not -type d -delete
+find $DIR/../cache/$1 -empty -type d -delete