mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 11:13:15 +08:00
Avoid new 2129 warnings when disabling the first one.
This commit is contained in:
@@ -3338,6 +3338,7 @@ checkMultipleAppends params t =
|
||||
style (snd $ fromJust f) 2129
|
||||
"Consider using { cmd1; cmd2; } >> file instead of individual redirects."
|
||||
checkGroup _ = return ()
|
||||
getTarget (T_Annotation _ _ t) = getTarget t
|
||||
getTarget (T_Pipeline _ _ args@(_:_)) = getTarget (last args)
|
||||
getTarget (T_Redirecting id list _) = do
|
||||
file <- mapMaybe getAppend list !!! 0
|
||||
|
Reference in New Issue
Block a user