From 71b40b791e863d3579fca9eb40d4c9b6fe738297 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Mon, 21 May 2018 19:38:19 +0200 Subject: Additional cleanup --- src/ci/scripts/prepareWorkspace.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ci/scripts/prepareWorkspace.sh') diff --git a/src/ci/scripts/prepareWorkspace.sh b/src/ci/scripts/prepareWorkspace.sh index d0f45bb68..941a99efc 100644 --- a/src/ci/scripts/prepareWorkspace.sh +++ b/src/ci/scripts/prepareWorkspace.sh @@ -24,6 +24,7 @@ ## ATTIC_DIRS="archiva-modules/archiva-base/archiva-indexer" REMOVE_DIRS=".indexer" +TMP_DIRECTORY=".tmp" while [ ! -z "$1" ]; do case "$1" in @@ -38,8 +39,15 @@ while [ ! -z "$1" ]; do esac done +if [ -e "${TMP_DIRECTORY}" ]; then + rm -rf "${TMP_DIRECTORY}" +fi +mkdir -p "${TMP_DIRECTORY}" + if [ -d "${REPO_DIR}" ]; then rm -rf "${REPO_DIR}" +else + echo "WARNING: Directory not found ${REPO_DIR}" fi for i in ${ATTIC_DIRS}; do -- cgit v1.2.3