From 26d16eb8ad472f48e7ad475c58677ea57c4fdbe3 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 15 Aug 2015 14:23:45 -0700 Subject: [PATCH] Avoid new 2129 warnings when disabling the first one. --- ShellCheck/Analytics.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index 5005316..77c7f05 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -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