aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2018-05-21 19:38:19 +0200
committerMartin Stockhammer <martin_s@apache.org>2018-05-21 19:38:19 +0200
commit71b40b791e863d3579fca9eb40d4c9b6fe738297 (patch)
treee29cbdfc8b22e7f724dc920160a322d1827bb23f /src
parent5fcce410ec8024d24592a463bf04d16208de8f6d (diff)
downloadarchiva-71b40b791e863d3579fca9eb40d4c9b6fe738297.tar.gz
archiva-71b40b791e863d3579fca9eb40d4c9b6fe738297.zip
Additional cleanup
Diffstat (limited to 'src')
-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