Adding cleanup of indexer directories

This commit is contained in:
Martin Stockhammer 2017-06-11 00:14:01 +02:00
parent abab994f71
commit 6a789cd7ae
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@
# Removes directories that are not used anymore.
##
ATTIC_DIRS=""
REMOVE_DIRS=".indexer"
for i in ${ATTIC_DIRS}; do
if [ "X${i}" != "X" -a -d ${i} ]; then
@ -30,3 +31,7 @@ for i in ${ATTIC_DIRS}; do
rm -rf ${i}
fi
done
for i in ${REMOVE_DIRS}; do
find . -type d -name "${i}" -exec rm -rf {} \;
done