docs: update lint/test pre-commit shell script example to use "$@" for proper argument handling

This commit is contained in:
Enno Richter 2025-05-02 05:43:45 +02:00
parent f00c1bf61b
commit fdc7be1318

View file

@ -52,8 +52,8 @@ the script as your linter.
# Second attempt will not do anything and exit 0 unless there's a real problem beyond
# the code formatting that was completed.
pre-commit run --files $* >/dev/null \
|| pre-commit run --files $*
pre-commit run --files "$@" >/dev/null \
|| pre-commit run --files "$@"
```
## Testing