aboutsummaryrefslogtreecommitdiffstats
path: root/src/ci/scripts/prepareWorkspace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ci/scripts/prepareWorkspace.sh')
-rwxr-xr-x[-rw-r--r--]src/ci/scripts/prepareWorkspace.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ci/scripts/prepareWorkspace.sh b/src/ci/scripts/prepareWorkspace.sh
index 941a99efc..b93c7a0f1 100644..100755
--- a/src/ci/scripts/prepareWorkspace.sh
+++ b/src/ci/scripts/prepareWorkspace.sh
@@ -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