Fix bug with `all_good` flag

This commit is contained in:
Yurii Motov 2026-01-05 19:30:38 +01:00
parent c70d79afe9
commit aba58fc19d
1 changed files with 4 additions and 2 deletions

View File

@ -160,7 +160,8 @@ def fix_all(ctx: typer.Context, language: str):
all_good = True
for page in docs:
doc_path = Path("docs") / language / "docs" / page
all_good = all_good and process_one_page(doc_path)
res = process_one_page(doc_path)
all_good = all_good and res
if not all_good:
raise typer.Exit(code=1)
@ -175,7 +176,8 @@ def fix_pages(
):
all_good = True
for path in doc_paths:
all_good = all_good and process_one_page(path)
res = process_one_page(path)
all_good = all_good and res
if not all_good:
raise typer.Exit(code=1)