From: Martin Stockhammer Date: Wed, 24 Oct 2018 20:55:30 +0000 (+0200) Subject: Fixing workspace prepare script X-Git-Tag: archiva-2.2.4~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a62783382334a6a5bb52c1491a8890560ed8e25;p=archiva.git Fixing workspace prepare script --- 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