diff options
author | Martin Stockhammer <martin_s@apache.org> | 2018-10-25 22:04:29 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2018-10-25 22:04:29 +0200 |
commit | e45634e2c9bedbf924cbd23a1e60b0ae9b8f3d56 (patch) | |
tree | d0d8110b79047c210114d7a73a17701a2cf8611a /src | |
parent | 1ce7039d4f570c61dd940df84c7913e16fae054c (diff) | |
download | archiva-e45634e2c9bedbf924cbd23a1e60b0ae9b8f3d56.tar.gz archiva-e45634e2c9bedbf924cbd23a1e60b0ae9b8f3d56.zip |
Fixing output in workspace cleanup
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--] | src/ci/scripts/prepareWorkspace.sh | 10 |
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 |