diff --git a/ctfcli/core/challenge.py b/ctfcli/core/challenge.py index 19c9d8f..f2e4ba1 100644 --- a/ctfcli/core/challenge.py +++ b/ctfcli/core/challenge.py @@ -919,7 +919,9 @@ def sync(self, ignore: tuple[str] = ()) -> None: self._set_next(_next) if "solution" not in ignore: - # self._delete_existing_solution() + resolved_solution = self._resolve_solution_path() + if not resolved_solution: + self._delete_existing_solution() self._create_solution() make_challenge_visible = False