mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Add info about shellcheck --shell=
11
SC2148.md
11
SC2148.md
@@ -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.
|
Reference in New Issue
Block a user