You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314 |
- #!/bin/bash
-
- # exclude vendor/
- SOURCES="./ergo.go ./irc"
-
- if [ "$1" = "--fix" ]; then
- exec gofmt -s -w $SOURCES
- fi
-
- if [ -n "$(gofmt -s -l $SOURCES)" ]; then
- echo "Go code is not formatted correctly with \`gofmt -s\`:"
- gofmt -s -d $SOURCES
- exit 1
- fi
|