diff --git a/aedi/target/base.py b/aedi/target/base.py index 64a9e07c..22297904 100644 --- a/aedi/target/base.py +++ b/aedi/target/base.py @@ -128,6 +128,9 @@ class BuildTarget(Target): if patched_line: patched_content.append(patched_line) + if content == patched_content: + return + with open(path, 'w') as f: f.writelines(patched_content)