Fix sanity check in openasar injector

This commit is contained in:
Isaac Shoebottom 2024-02-07 11:01:50 -04:00
parent 7d90433a9a
commit 271c4bfc92

View File

@ -92,7 +92,9 @@ def sanity_check():
print("Would you like to clear backups? (y/n)") print("Would you like to clear backups? (y/n)")
answer = input().lower() answer = input().lower()
if answer == "y": if answer == "y":
os.remove(RESOURCES_PATH + ASAR_BACKUP) if os.path.isfile(RESOURCES_PATH + ASAR_BACKUP):
os.remove(RESOURCES_PATH + ASAR_BACKUP)
print("Backup cleared, installation will continue as normal")
print("Backups cleared, installation will continue as normal") print("Backups cleared, installation will continue as normal")
else: else:
print("Backups not cleared, please clean manually") print("Backups not cleared, please clean manually")