irc-go/.travis.gofmt.sh
Shivaram Lingamneni c098b46276 add some test code
2018-04-26 23:32:27 -04:00

9 lines
172 B
Bash

#!/bin/bash
SOURCES="."
if [ -n "$(gofmt -s -l $SOURCES)" ]; then
echo "Go code is not formatted correctly with \`gofmt -s\`:"
gofmt -s -d $SOURCES
exit 1
fi