mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-04-21 13:37:48 +00:00
fix: update README file path patterns in indentation and version scripts
This commit is contained in:
parent
24275f9cb5
commit
46e97cb4f1
2 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ from __future__ import annotations
|
|||
import difflib
|
||||
from pathlib import Path
|
||||
|
||||
CORE_DIR = Path(__file__).resolve().parent.parent / "src" / "common" / "core"
|
||||
CORE_DIR = Path(__file__).resolve().parent.parent / "src" / "common"
|
||||
|
||||
|
||||
def needs_processing(path: Path) -> bool:
|
||||
|
|
@ -106,7 +106,7 @@ def process_file(path: Path) -> bool:
|
|||
def main() -> None:
|
||||
if not CORE_DIR.exists():
|
||||
raise SystemExit(f"Core directory not found: {CORE_DIR}")
|
||||
readmes = sorted(CORE_DIR.glob("*/README*.md"))
|
||||
readmes = sorted(CORE_DIR.glob("**/README*.md"))
|
||||
changed = 0
|
||||
for readme in readmes:
|
||||
if not needs_processing(readme):
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" docs/*.md
|
|||
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" docs/*/*.md
|
||||
# README
|
||||
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" README.md
|
||||
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" src/common/core/*/README.md
|
||||
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" src/common/core/*/README*.md
|
||||
# tests
|
||||
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" tests/ui/docker-compose.yml
|
||||
shopt -s globstar
|
||||
|
|
|
|||
Loading…
Reference in a new issue