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 # }}}