Skip to content

Commit

Permalink
Update updater.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Leviaria authored Jun 19, 2024
1 parent 3b1fb24 commit 682dc6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clashroyalebuildabot/state/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ def check_for_update():
logger.info("Replacing old version with new version...")
replace_old_version(latest_commit_sha)
update_local_version(latest_commit_sha)
os.remove(DOWNLOAD_PATH)
if os.path.exists(DOWNLOAD_PATH):
os.remove(DOWNLOAD_PATH)
logger.info("Update successful!")
else:
logger.info("Update canceled.")
else:
logger.info("You are already using the latest version.")
logger.info("You are already using the latest version.")

0 comments on commit 682dc6e

Please sign in to comment.