Skip to content
Johan Walles edited this page Oct 3, 2019 · 15 revisions

Add shebang to the top of your script:

#!/bin/bash

Alternatively, if that is not possible / desirable, you can use the --shell switch:

shellcheck --shell=bash without-shebang.sh

See shellcheck --help for a list of supported flavors.

ShellCheck

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.

Clone this wiki locally