Skip to content

Commit

Permalink
Make sure to use int vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Jan 22, 2024
1 parent 715a5e3 commit 0ccd81c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modoboa_installer/scripts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def modoboa_2_2_or_greater(self):
sudo_user=self.config.get("modoboa", "user")
)
condition = (
(modoboa_version[0] == 2 and modoboa_version[1] >= 2) or
modoboa_version[0] > 2
(int(modoboa_version[0]) == 2 and int(modoboa_version[1]) >= 2) or
int(modoboa_version[0]) > 2
)
return condition

Expand Down

0 comments on commit 0ccd81c

Please sign in to comment.