mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
docs: update lint/test pre-commit shell script example to use "$@" for proper argument handling
This commit is contained in:
parent
f00c1bf61b
commit
fdc7be1318
1 changed files with 2 additions and 2 deletions
|
@ -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
|
# Second attempt will not do anything and exit 0 unless there's a real problem beyond
|
||||||
# the code formatting that was completed.
|
# the code formatting that was completed.
|
||||||
|
|
||||||
pre-commit run --files $* >/dev/null \
|
pre-commit run --files "$@" >/dev/null \
|
||||||
|| pre-commit run --files $*
|
|| pre-commit run --files "$@"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue