From 9ec4464feca247c08c00cb62aee492fd47490eee Mon Sep 17 00:00:00 2001 From: gaellick <32159476+gaellick@users.noreply.github.com> Date: Mon, 13 Apr 2020 11:55:25 +0200 Subject: [PATCH] bash is more appropriate for .bashrc --- SC2148.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SC2148.md b/SC2148.md index d825e0b..495f94d 100644 --- a/SC2148.md +++ b/SC2148.md @@ -7,12 +7,12 @@ Add a shebang line to the top of your script: Or, for scripts that will not be executed (*e.g.*, `~/.bashrc`), use a directive: ```bash -# shellcheck shell=sh +# shellcheck shell=bash ``` If neither of those options are possible or desirable, you can invoke ShellCheck with the `--shell` switch: ```bash -shellcheck --shell=bash without-shebang.sh +shellcheck --shell=sh without-shebang.sh ``` See `shellcheck --help` for a list of supported flavors. \ No newline at end of file