diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-07 15:09:49 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-07 15:09:49 +0000 |
commit | f276d294878605e289c84beb53032b40c53ba961 (patch) | |
tree | 20ca851593d31f5d5fabcaa15a23c9b607df04f5 /doc/development/shell_scripting_guide | |
parent | 100b1a03e603487ff1966f513ba1a177a8adaefd (diff) | |
download | gitlab-ce-f276d294878605e289c84beb53032b40c53ba961.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/shell_scripting_guide')
-rw-r--r-- | doc/development/shell_scripting_guide/index.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/shell_scripting_guide/index.md b/doc/development/shell_scripting_guide/index.md index d6b72132a3f..c9e2c98716b 100644 --- a/doc/development/shell_scripting_guide/index.md +++ b/doc/development/shell_scripting_guide/index.md @@ -73,7 +73,7 @@ shell check: ``` TIP: **Tip:** -By default, ShellCheck will use the [shell detection](https://github.com/koalaman/shellcheck/wiki/SC2148#rationale) +By default, ShellCheck uses the [shell detection](https://github.com/koalaman/shellcheck/wiki/SC2148#rationale) to determine the shell dialect in use. If the shell file is out of your control and ShellCheck cannot detect the dialect, use `-s` flag to specify it: `-s sh` or `-s bash`. @@ -101,7 +101,7 @@ shfmt: ``` TIP: **Tip:** -By default, shfmt will use the [shell detection](https://github.com/mvdan/sh#shfmt) similar to one of ShellCheck +By default, shfmt uses the [shell detection](https://github.com/mvdan/sh#shfmt) similar to one of ShellCheck and ignore files starting with a period. To override this, use `-ln` flag to specify the shell dialect: `-ln posix` or `-ln bash`. |