Another pass
This commit is contained in:
parent
d153d47604
commit
2398035e53
@ -1,11 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Run the fmt on bindata so it does not trigger failure
|
||||||
|
go fmt ./pkg/data/bindata.go > /dev/null
|
||||||
|
|
||||||
|
# Get list of offending files
|
||||||
files="$(go fmt ./pkg/...)"
|
files="$(go fmt ./pkg/...)"
|
||||||
ignore="pkg/data/bindata.go"
|
|
||||||
files=${files[@]/$ignore}
|
|
||||||
|
|
||||||
if [ -n "$files" ]; then
|
if [ -n "$files" ]; then
|
||||||
echo "Go code is not formatted: $files"
|
echo "Go code is not formatted:"
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
echo "----> $file"
|
echo "----> $file"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user