From 3fa03cadd280275ae47b90d007ab1123b56f283a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 1 Feb 2022 10:27:44 +0100 Subject: [PATCH] Find and remove old files only from current dir Avoid to find files in subdirectory --- github/check.gitea.update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/check.gitea.update b/github/check.gitea.update index 9807eb2..2a56fc1 100755 --- a/github/check.gitea.update +++ b/github/check.gitea.update @@ -238,7 +238,7 @@ The current version (${RED}${gitea_current_version}${COLOR_DEBUG}) is up-to-date debug_message "Test version − \ Ensure to remove temp file and any previous and unused releases." rm --force -- "${gitea_new_version_file}" - find "${gitea_bin_dir}" -type f -iname "gitea.to.upgrade*" -delete + find "${gitea_bin_dir}" -maxdepth 1 -type f -iname "gitea.to.upgrade*" -delete fi # }}}