mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-05-27 17:16:44 -04:00
Fix force-reinstall edge case not allowing current version (#6778)
This commit is contained in:
@@ -312,7 +312,10 @@ class Updater:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if self.options.red_version:
|
if self.options.red_version:
|
||||||
if self.options.red_version <= self.current_version:
|
if self.options.red_version < self.current_version or (
|
||||||
|
not self.options.force_reinstall
|
||||||
|
and self.options.red_version == self.current_version
|
||||||
|
):
|
||||||
common.print_with_prefix_column(
|
common.print_with_prefix_column(
|
||||||
common.ICON_ERROR, "You can only update to a newer version of Red."
|
common.ICON_ERROR, "You can only update to a newer version of Red."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user