1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 20:55:24 +02:00
tldr/pages/common/shellcheck.md
Starbeamrainbowlabs 45ec3033c0
Revert "multiple pages: add homepages"
This reverts commit 347e557303.
2018-12-19 23:33:18 +00:00

19 lines
336 B
Markdown

# 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}}`