mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-20 02:33:31 +08:00
s/sh/bash/ in SC2176 because of posix guarantees.
This commit is contained in:
@@ -1872,7 +1872,7 @@ checkTimedCommand _ = checkUnqualifiedCommand "time" f where
|
|||||||
f c args@(_:_) = do
|
f c args@(_:_) = do
|
||||||
let cmd = last args
|
let cmd = last args
|
||||||
when (isPiped cmd) $
|
when (isPiped cmd) $
|
||||||
warn (getId c) 2176 "'time' is undefined for pipelines. time single stage or sh -c instead."
|
warn (getId c) 2176 "'time' is undefined for pipelines. time single stage or bash -c instead."
|
||||||
when (isSimple cmd == Just False) $
|
when (isSimple cmd == Just False) $
|
||||||
warn (getId cmd) 2177 "'time' is undefined for compound commands, time sh -c instead."
|
warn (getId cmd) 2177 "'time' is undefined for compound commands, time sh -c instead."
|
||||||
f _ _ = return ()
|
f _ _ = return ()
|
||||||
|
Reference in New Issue
Block a user