Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiBrandt committed Feb 19, 2019
1 parent f0538c8 commit 030493c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions god/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ def check_updates():

cli.info("Encontrado: " + latest_release['tag_name'])

with open(".version", "r") as version_file:
if latest_release['tag_name'] == version_file.readline().strip():
cli.success("O god está atualizado.")
return
if os.path.isfile(".version"):
with open(".version", "r") as version_file:
if latest_release['tag_name'] == version_file.readline().strip():
cli.success("O god está atualizado.")
return

while True:
answer = input("\tAtualizar? [Y/n] ").lower().strip()
Expand Down

0 comments on commit 030493c

Please sign in to comment.