From 7a62783382334a6a5bb52c1491a8890560ed8e25 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 24 Oct 2018 22:55:30 +0200 Subject: Fixing workspace prepare script --- src/ci/scripts/prepareWorkspace.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ci/scripts/prepareWorkspace.sh b/src/ci/scripts/prepareWorkspace.sh index 941a99efc..052d6e238 100644 --- a/src/ci/scripts/prepareWorkspace.sh +++ b/src/ci/scripts/prepareWorkspace.sh @@ -22,7 +22,7 @@ # # Removes directories that are not used anymore. ## -ATTIC_DIRS="archiva-modules/archiva-base/archiva-indexer" +ATTIC_DIRS="" REMOVE_DIRS=".indexer" TMP_DIRECTORY=".tmp" @@ -44,10 +44,12 @@ if [ -e "${TMP_DIRECTORY}" ]; then fi mkdir -p "${TMP_DIRECTORY}" -if [ -d "${REPO_DIR}" ]; then - rm -rf "${REPO_DIR}" -else - echo "WARNING: Directory not found ${REPO_DIR}" +if [ ! -z "${REPO_DIR}" ]; then + if [ -d "${REPO_DIR}" ]; then + rm -rf "${REPO_DIR}" + else + echo "WARNING: Directory not found ${REPO_DIR}" + fi fi for i in ${ATTIC_DIRS}; do -- cgit v1.2.3