Gitea: Ensure to remove unused previous release

This commit is contained in:
Jeremy Gardais 2021-09-29 15:26:19 +02:00
parent f66af4977d
commit 79ff7e0a5f
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ if [ "${gitea_current_version}" != "${gitea_new_version}" ]; then
else else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date." [ "${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}" 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 fi
# }}} # }}}