summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-23 01:25:02 +0200
committeremkael <emkael@tlen.pl>2016-04-23 01:25:02 +0200
commite6436897acd2c9f95e02ac9af0287791453b80f4 (patch)
tree4b2dee6a938160738f8390839b1c220b2ce19a73 /bin
parent970da9fd7273827357100f89e5de33b55cf44d71 (diff)
* cache cleanup script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/clean_cache.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/clean_cache.sh b/bin/clean_cache.sh
new file mode 100755
index 0000000..2083475
--- /dev/null
+++ b/bin/clean_cache.sh
@@ -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