mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Remove duplicate pathTo
and unused replaceMultiLines
This commit is contained in:
parent
e45b679d58
commit
df7f00eaed
3 changed files with 22 additions and 41 deletions
|
@ -484,7 +484,7 @@ prop_checkInteractiveSu4 = verifyNot checkInteractiveSu "su root < script"
|
|||
checkInteractiveSu = CommandCheck (Basename "su") f
|
||||
where
|
||||
f cmd = when (length (arguments cmd) <= 1) $ do
|
||||
path <- pathTo cmd
|
||||
path <- getPathM cmd
|
||||
when (all undirected path) $
|
||||
info (getId cmd) 2117
|
||||
"To run commands as another user, use su -c or sudo."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue