mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2148 (markdown)
@@ -32,8 +32,6 @@ If you for any reason can't or won't add a shebang, there are multiple other way
|
|||||||
* Use a shellcheck [[directive]], adding `# shellcheck shell=ksh` before the first command in the file.
|
* Use a shellcheck [[directive]], adding `# shellcheck shell=ksh` before the first command in the file.
|
||||||
* Give the script a `.bash`, `.ksh` or `.dash` extension (`.sh` will not assume `--shell=sh` since it's so generic)
|
* Give the script a `.bash`, `.ksh` or `.dash` extension (`.sh` will not assume `--shell=sh` since it's so generic)
|
||||||
|
|
||||||
Note that this error can not be ignored with a [[directive]]. It is not a suggestion to improve your script, but a warning that ShellCheck lacks information it needs to be helpful.
|
|
||||||
|
|
||||||
### Exceptions
|
### Exceptions
|
||||||
|
|
||||||
None. Please either add a shebang, directive, extension or use `-s`.
|
None. Please either add a shebang, directive, extension or use `-s` to maximize ShellCheck's usefulness.
|
Reference in New Issue
Block a user