summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2018-10-24 22:55:30 +0200
committerMartin Stockhammer <martin_s@apache.org>2018-10-24 22:55:30 +0200
commit7a62783382334a6a5bb52c1491a8890560ed8e25 (patch)
treee2c6477ca62066533263733b837a09a975484932 /src
parent8a44373c1d941aa07426031f76f9818bdfe9aedd (diff)
downloadarchiva-7a62783382334a6a5bb52c1491a8890560ed8e25.tar.gz
archiva-7a62783382334a6a5bb52c1491a8890560ed8e25.zip
Fixing workspace prepare script
Diffstat (limited to 'src')
-rw-r--r--src/ci/scripts/prepareWorkspace.sh12
1 files changed, 7 insertions, 5 deletions
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