Files
rqlite-distributed-sql/gofmt.sh
2016-03-14 21:53:13 -07:00

7 lines
181 B
Bash
Executable File

#!/bin/bash
fmtcount=`git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l`
if [ $fmtcount -gt 0 ]; then
echo "run 'go fmt ./...' to format your source code."
exit 1
fi