shellcheck

shellcheck

TLDR

Check a shell script

$ shellcheck [file.sh]
copy

Override script's shebang

$ shellcheck --shell [sh|bash|ksh] [file.sh]
copy

Ignore certain errors

$ shellcheck --exclude [SC1009] [file.sh]
copy

Ignore multiple errors

$ shellcheck --exclude [SC1009,SC1073] [file.sh]
copy

Copied to clipboard
gala