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