Created
March 9, 2020 13:12
-
-
Save eduardoveiga/6478b342bc6408389b12fd8485485c49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| for file in `git ls-tree -r master --name-only | grep \\.go` | |
| do | |
| echo $file | |
| output=`gofmt -w "$file"` | |
| if test -n "$output" | |
| then | |
| echo >&2 "$output" | |
| exitcode=1 | |
| fi | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#!/bin/sh
for file in
git ls-tree -r master --name-only | grep \\.godo
echo $file
output=
gofmt -w "$file"done