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
free 100$ digital ocean credit