mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
shellcheck: add page (#2140)
This commit is contained in:
parent
4cf731ce1d
commit
60a0f9d1a5
1 changed files with 19 additions and 0 deletions
19
pages/common/shellcheck.md
Normal file
19
pages/common/shellcheck.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# shellcheck
|
||||
|
||||
> Shell script static analysis tool.
|
||||
|
||||
- Check a shell script:
|
||||
|
||||
`shellcheck {{file.sh}}`
|
||||
|
||||
- Override script's shebang:
|
||||
|
||||
`shellcheck --shell {{sh|bash|ksh}} {{file.sh}}`
|
||||
|
||||
- Ignore certain errors:
|
||||
|
||||
`shellcheck --exclude {{SC1009}} {{file.sh}}`
|
||||
|
||||
- Ignore multiple errors:
|
||||
|
||||
`shellcheck --exclude {{SC1009,SC1073}} {{file.sh}}`
|
Loading…
Add table
Reference in a new issue