From 338c28706cf7cd4d53639453544eed6c6ae39ec7 Mon Sep 17 00:00:00 2001
From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>
Date: Mon, 17 Feb 2025 16:12:57 +0100
Subject: [PATCH] ci: fix rm flags

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fb08c5e..77b69b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -91,7 +91,7 @@ Check style:
         ${CI_JOB_URL}/artifacts/raw/${STYLE_PATCH}.\n${DEFAULT}"
         } || {
           printf "${RED}The issues cannot be resolved with a patch.\n${DEFAULT}"
-          rm -rf "${STYLE_PATCH}"
+          rm -f "${STYLE_PATCH}"
         }
         printf "${RED}You can reproduce this check locally with \`pre-commit run --all-files\`.
       See also ${CI_PROJECT_URL}/-/blob/${CI_DEFAULT_BRANCH}/CONTRIBUTING.md#coding-style.\n${DEFAULT}"
@@ -176,7 +176,7 @@ include:
         printf "${DEFAULT}"
         exit 1
       }
-      rm -rf "${BUILD_LOG}" "${compiler_warnings}"
+      rm -f "${BUILD_LOG}" "${compiler_warnings}"
     - |
       # Check if there are untracked files
       untracked_files=$( \
-- 
GitLab