This is an automated email from the ASF dual-hosted git repository. martin_s pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/archiva.git
commit e45634e2c9bedbf924cbd23a1e60b0ae9b8f3d56 Author: Martin Stockhammer <[email protected]> AuthorDate: Thu Oct 25 22:04:29 2018 +0200 Fixing output in workspace cleanup --- src/ci/scripts/prepareWorkspace.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ci/scripts/prepareWorkspace.sh b/src/ci/scripts/prepareWorkspace.sh old mode 100644 new mode 100755 index 941a99e..b93c7a0 --- 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
