mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
11 lines
207 B
Bash
Executable File
11 lines
207 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# exclude vendor/
|
|
SOURCES="./oragono.go ./irc"
|
|
|
|
if [ -n "$(gofmt -s -l $SOURCES)" ]; then
|
|
echo "Go code is not formatted correctly with \`gofmt -s\`:"
|
|
gofmt -s -d $SOURCES
|
|
exit 1
|
|
fi
|