Add info about shellcheck --shell=

Johan Walles
2019-10-03 09:29:19 +02:00
parent 1c89019cf3
commit 160489f1c6

@@ -1,5 +1,12 @@
Add shebang to the top of your script:
``
```bash
#!/bin/bash
``
```
Alternatively, if that is not possible / desirable, you can use the `--shell` switch:
```bash
shellcheck --shell=bash without-shebang.sh
```
See `shellcheck --help` for a list of supported flavors.