mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-05 20:41:35 -07:00
Use unless instead of when and not
This commit is contained in:
parent
3c75d82db5
commit
195b70db8c
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ checkBashisms = ForShell [Sh, Dash, BusyboxSh] $ \t -> do
|
|||
| t `isCommand` "echo" && argString `matches` flagRegex =
|
||||
if isBusyboxSh
|
||||
then
|
||||
when (not (argString `matches` busyboxFlagRegex)) $
|
||||
unless (argString `matches` busyboxFlagRegex) $
|
||||
warnMsg (getId arg) 3036 "echo flags besides -n and -e"
|
||||
else if isDash
|
||||
then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue