From e45634e2c9bedbf924cbd23a1e60b0ae9b8f3d56 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Thu, 25 Oct 2018 22:04:29 +0200 Subject: Fixing output in workspace cleanup --- src/ci/scripts/prepareWorkspace.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/ci/scripts/prepareWorkspace.sh (limited to 'src') diff --git a/src/ci/scripts/prepareWorkspace.sh b/src/ci/scripts/prepareWorkspace.sh old mode 100644 new mode 100755 index 941a99efc..b93c7a0f1 --- 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 -- cgit v1.2.3