From a60a04aa458b6e4f27e5ba3d2a30249c72a0cc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B0=D1=88=D0=B0=20=D0=A7=D0=B5=D1=80=D0=BD=D1=8B?= =?UTF-8?q?=D1=85?= Date: Sat, 28 Apr 2018 10:39:46 +0300 Subject: [PATCH] fix(shell): validation SC2148 ### 1. Summary I add `#!/bin/bash` in beginning of Shell template. ### 2. Argumentation Shebang must be in shell scripts. Please, read [**ShellCheck SC2148**](https://github.com/koalaman/shellcheck/wiki/SC2148). ### 3. Behavior before pull request ```bash # @Author: SashaChernykh # @Date: 2018-04-28 08:58:09 # @Last Modified by: SashaChernykh # @Last Modified time: 2018-04-28 08:58:09 ``` ### 4. Behavior after pull request ```bash #!/bin/bash # @Author: SashaChernykh # @Date: 2018-04-28 08:58:09 # @Last Modified by: SashaChernykh # @Last Modified time: 2018-04-28 08:58:09 ``` ### 5. Testing environment + Sublime Text Build 3143 + FileHeader 2.0.5 Thanks. --- template/header/ShellScript.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/template/header/ShellScript.tmpl b/template/header/ShellScript.tmpl index 5b4917b..66fa78f 100644 --- a/template/header/ShellScript.tmpl +++ b/template/header/ShellScript.tmpl @@ -1,3 +1,4 @@ +#!/bin/bash # @Author: {{author}} # @Date: {{create_time}} # @Last Modified by: {{last_modified_by}}