From 1866a1b36f22ff5689af06433f2ff66152a3a8a6 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 1 Apr 2026 20:44:23 +0200 Subject: [PATCH] ci: drop redundant existance check before `rm -rf` Part-of: --- .gitlab-ci/setup-test-env.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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