diff --git a/github/check.gitea.update b/github/check.gitea.update index 9de5a50..b7413b3 100755 --- a/github/check.gitea.update +++ b/github/check.gitea.update @@ -85,6 +85,8 @@ if [ "${gitea_current_version}" != "${gitea_new_version}" ]; then else [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — The current version is up-to-date." rm --force -- "${gitea_new_version_file}" + [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Test version — Ensure to remove any previous and unused releases." + find /usr/local/bin -type f -iname "gitea.to.upgrade*" -delete fi # }}}