980400db0b
Noticed in #1058 that our gofmt make target isn't actually erroring if someone commits misformatted code.
7 lines
153 B
Bash
Executable file
7 lines
153 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
result=$( go fmt $@ )
|
|
if [[ $result != "" ]]; then
|
|
>&2 echo "The following files are not formatted correctly: $result"
|
|
exit 1
|
|
fi
|