2018-03-16 19:59:58 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-03-16 20:04:08 -05:00
|
|
|
files="$(go fmt ./pkg/...)"
|
2018-03-16 19:59:58 -05:00
|
|
|
ignore="pkg/data/bindata.go"
|
|
|
|
files=${files[@]/$ignore}
|
|
|
|
|
|
|
|
if [ -n "$files" ]; then
|
|
|
|
echo "Go code is not formatted: $files"
|
|
|
|
for file in $files; do
|
|
|
|
echo "----> $file"
|
|
|
|
done
|
|
|
|
exit 1
|
|
|
|
fi
|