shellcheck: add page (#2140)

italian
Penghe Geng 2018-06-20 07:12:26 -04:00 committed by Starbeamrainbowlabs
parent 4cf731ce1d
commit 60a0f9d1a5
1 changed files with 19 additions and 0 deletions

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