mirror of https://github.com/CrimsonTome/tldr.git
shellcheck: add page (#2140)
parent
4cf731ce1d
commit
60a0f9d1a5
|
@ -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…
Reference in New Issue