diff options
-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 |