diff --git a/.gitlab-ci/setup-test-env.sh b/.gitlab-ci/setup-test-env.sh index b566ab948c4..7861105f6b6 100755 --- a/.gitlab-ci/setup-test-env.sh +++ b/.gitlab-ci/setup-test-env.sh @@ -130,9 +130,7 @@ export -f _error_msg if [ -z "${RESULTS_DIR:-}" ]; then export RESULTS_DIR="${PWD%/}/results" - if [ -e "${RESULTS_DIR}" ]; then - rm -rf "${RESULTS_DIR}" - fi + rm -rf "${RESULTS_DIR}" mkdir -p "${RESULTS_DIR}" fi