We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Add shebang to the top of your script:
#!/bin/bash
Alternatively, if that is not possible / desirable, you can use the --shell switch:
--shell
shellcheck --shell=bash without-shebang.sh
See shellcheck --help for a list of supported flavors.
shellcheck --help
ShellCheck
Installation
Usage
Integrating and extending
Severity
Template
Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.