diff --git a/kibot/out_diff.py b/kibot/out_diff.py index bc0d63a1..cd74dea5 100644 --- a/kibot/out_diff.py +++ b/kibot/out_diff.py @@ -293,6 +293,8 @@ class DiffOptions(BaseOptions): if self.copy_instead_of_link: copy2(name, target) else: + if os.path.isfile(target): + os.remove(target) os.symlink(os.path.basename(name), target) finally: # Clean-up