diff options
author | emkael <emkael@tlen.pl> | 2016-04-23 01:25:02 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-04-23 01:25:02 +0200 |
commit | e6436897acd2c9f95e02ac9af0287791453b80f4 (patch) | |
tree | 4b2dee6a938160738f8390839b1c220b2ce19a73 | |
parent | 970da9fd7273827357100f89e5de33b55cf44d71 (diff) |
* cache cleanup script
-rwxr-xr-x | bin/clean_cache.sh | 4 |
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 |