From: Martin Stockhammer Date: Sat, 10 Jun 2017 22:22:28 +0000 (+0200) Subject: Improve workspace cleanup X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f62d5f78cb99103f60bec87b49e7a74c09b7c75a;p=archiva.git Improve workspace cleanup --- diff --git a/src/ci/scripts/prepareWorkspace.sh b/src/ci/scripts/prepareWorkspace.sh index 45f857c1b..c9d1d8d69 100644 --- a/src/ci/scripts/prepareWorkspace.sh +++ b/src/ci/scripts/prepareWorkspace.sh @@ -33,5 +33,5 @@ for i in ${ATTIC_DIRS}; do done for i in ${REMOVE_DIRS}; do - find . -type d -name "${i}" -exec rm -rf {} \; + find . -type d -name "${i}" -print0 | xargs -0 rm -rvf done