Skip to main content

Shell script analysis tool.

# To check a shell script:
shellcheck <file.sh>

# To override script's shebang:
shellcheck --shell <sh|bash|ksh> <file.sh>

# To ignore certain errors:
shellcheck --exclude <SC1009> <file.sh>

# To ignore multiple errors:
shellcheck --exclude <SC1009,SC1073> <file.sh>