Avoid new 2129 warnings when disabling the first one.

This commit is contained in:
Vidar Holen 2015-08-15 14:23:45 -07:00
parent 54b2d14847
commit 26d16eb8ad
1 changed files with 1 additions and 0 deletions

View File

@ -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