diff --git a/ctfcli/core/challenge.py b/ctfcli/core/challenge.py index 517f550..a20c8a5 100644 --- a/ctfcli/core/challenge.py +++ b/ctfcli/core/challenge.py @@ -736,8 +736,10 @@ def sync(self, ignore: Tuple[str] = ()) -> None: ) as lf: local_file_sha1sum = hash_file(lf) - if local_file_sha1sum == remote_file_sha1sum: - continue + # Allow users to specify sha1sum in ignore to force reuploads + if "sha1sum" not in ignore: + if local_file_sha1sum == remote_file_sha1sum: + continue # if sha1sums are not present, or the hashes are different, re-upload the file self._delete_file(remote_files[local_file_name]["location"])