Skip to content

Commit 1755420

Browse files
committed
chore: make owlbot script idempotent
1 parent ce66348 commit 1755420

2 files changed

Lines changed: 1 addition & 162 deletions

File tree

handwritten/error-reporting/.kokoro/common.cfg

Lines changed: 0 additions & 161 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handwritten/error-reporting/owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
s.move(
3535
"handwritten/error-reporting/.kokoro/common_env_vars.cfg",
3636
"handwritten/error-reporting/.kokoro/common.cfg",
37-
merge=lambda src, dst, _, : f"{dst}\n{src}",
37+
merge=lambda src, dst, _: dst if src.strip() in dst else f"{dst.rstrip()}\n{src.strip()}\n",
3838
)
3939
for path, subdirs, files in os.walk(f"handwritten/error-reporting/.kokoro/continuous"):
4040
for name in files:

0 commit comments

Comments
 (0)