From 741d499b3d3e7a6fed524b86d5ff0f9ebd0e353f Mon Sep 17 00:00:00 2001 From: Austin English Date: Sat, 7 Mar 2020 19:23:35 -0600 Subject: [PATCH] src/ShellCheck/Analytics.hs: suggest using a shell directive for SC2148 --- src/ShellCheck/Analytics.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Analytics.hs b/src/ShellCheck/Analytics.hs index df3d3f4..5ad51d7 100644 --- a/src/ShellCheck/Analytics.hs +++ b/src/ShellCheck/Analytics.hs @@ -559,7 +559,7 @@ checkShebang params (T_Annotation _ list t) = checkShebang params (T_Script _ (T_Literal id sb) _) = execWriter $ do unless (shellTypeSpecified params) $ do when (null sb) $ - err id 2148 "Tips depend on target shell and yours is unknown. Add a shebang." + err id 2148 "Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive." when (executableFromShebang sb == "ash") $ warn id 2187 "Ash scripts will be checked as Dash. Add '# shellcheck shell=dash' to silence." unless (null sb) $ do