diff options
author | Martin Stockhammer <martin_s@apache.org> | 2017-06-11 00:14:01 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2017-06-11 00:14:01 +0200 |
commit | 6a789cd7aee2d24c02a925853b058530a98e5ad1 (patch) | |
tree | 0937a7cfd50078bf49142b2d0de9f2bbed49cf54 /src | |
parent | abab994f71a2654e2e4acf577d3c4a356a7c6817 (diff) | |
download | archiva-6a789cd7aee2d24c02a925853b058530a98e5ad1.tar.gz archiva-6a789cd7aee2d24c02a925853b058530a98e5ad1.zip |
Adding cleanup of indexer directories
Diffstat (limited to 'src')
-rw-r--r-- | src/ci/scripts/prepareWorkspace.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ci/scripts/prepareWorkspace.sh b/src/ci/scripts/prepareWorkspace.sh index 725f3e382..45f857c1b 100644 --- a/src/ci/scripts/prepareWorkspace.sh +++ b/src/ci/scripts/prepareWorkspace.sh @@ -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 |