Browse Source

working on comparing checksums

master
Holger Frey 5 years ago
parent
commit
37534861d9
  1. 6
      compare_checksums.py

6
compare_checksums.py

@ -58,11 +58,11 @@ def batch_check(): @@ -58,11 +58,11 @@ def batch_check():
remote_checksum = get_remote_checksum(local_backup_path)
local_checksum = get_local_checksum(local_backup_path)
if remote_checksum is None:
print("? {local_checksum} -> (error)")
print(f"? {local_checksum} -> (error)")
elif remote_checksum == local_checksum:
print(" {local_checksum} -> {remote_checksum}")
print(f" {local_checksum} -> {remote_checksum}")
else:
print("XXX {local_checksum} -> {remote_checksum}")
print(f"XXX {local_checksum} -> {remote_checksum}")
if __name__ == "__main__":

Loading…
Cancel
Save