Skip to content

Commit 57eaae7

Browse files
committed
Fix scripts with no shebang for go scripts
1 parent 4679064 commit 57eaae7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

template/.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ repos:
88
args: [--markdown-linebreak-ext=md]
99
- id: check-case-conflict
1010
- id: check-executables-have-shebangs
11+
exclude: '\.go$'
1112
- id: check-json
1213
- id: check-merge-conflict
1314
- id: check-shebang-scripts-are-executable

template/{% if code_templates %}codeTemplates{% endif %}/scriptTemplates/goScriptTemplate.go

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// goScriptTemplate.go
44
//
55
// =============================================================================
6-
// Template to create new python cli scripts.
6+
// Template to create new go cli app
77
// Author: Evan Harmon
88
// Usage: go run main.go --input input.txt --output output.txt --verbose
99
// Build: go build -o cliapp

0 commit comments

Comments
 (0)