Files

19 lines
659 B
Markdown
Raw Permalink Normal View History

# Spec: fix-migrate-find-precedence
## Problem
`scripts/migrate-project.sh:108` has a `find` command without parentheses:
```
find "$PROJECT_AUTOMATON" -maxdepth 1 -type f -name "*.md" -o -name "*.sh" -print0
```
Without parens, `-print0` only applies to the `.sh` branch. `.md` files are found but never printed, so customized `.md` files are silently skipped during migration.
## Fix
Add parentheses around the `-o` group:
```
find "$PROJECT_AUTOMATON" -maxdepth 1 -type f \( -name "*.md" -o -name "*.sh" \) -print0
```
## Acceptance Criteria
- Both `.md` and `.sh` files are processed by the migration loop
- `bash -n scripts/migrate-project.sh` passes