Find and remove old files only from current dir

Avoid to find files in subdirectory
This commit is contained in:
Jeremy Gardais 2022-02-01 10:27:44 +01:00
parent 3580fa5f13
commit 3fa03cadd2
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

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