aboutsummaryrefslogtreecommitdiffstats
path: root/src/ci/scripts/prepareWorkspace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ci/scripts/prepareWorkspace.sh')
-rw-r--r--src/ci/scripts/prepareWorkspace.sh8
1 files changed, 8 insertions, 0 deletions
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