profile.d: Silence SC2148
While Toolbox's test suite explicitly uses --shell=sh when running shellcheck(1) on profile.d/toolbox.sh, external tools like Coverity can't be expected to do the same. So they complain: Line 1: [ "$BASH_VERSION" != "" ] || [ "$ZSH_VERSION" != "" ] || return 0 ^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive. See: https://github.com/koalaman/shellcheck/wiki/SC2148 https://github.com/containers/toolbox/pull/673
This commit is contained in:
parent
69dd701d3a
commit
16c47c0e82
|
@ -1,3 +1,5 @@
|
|||
# shellcheck shell=sh
|
||||
|
||||
[ "$BASH_VERSION" != "" ] || [ "$ZSH_VERSION" != "" ] || return 0
|
||||
[ "$PS1" != "" ] || return 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue