Automatically restart the script after a successful update

This commit is contained in:
Hoang Hong Quan
2024-08-18 12:09:14 +07:00
parent f4b8035da1
commit 932c43057d
-1
View File
@@ -73,7 +73,6 @@ class Updater:
self.update_files() self.update_files()
self.save_latest_sha_version(latest_sha_version) self.save_latest_sha_version(latest_sha_version)
print("\n\n{}\n".format(self.utils.message("The program needs to restart to complete the update process.", "reminder"))) print("\n\n{}\n".format(self.utils.message("The program needs to restart to complete the update process.", "reminder")))
self.utils.request_input("Press Enter to restart...")
return True return True
else: else:
print("You are already using the latest version") print("You are already using the latest version")