Merge pull request #6460 from jayunit100/gofmtmsg

Make gofmt message precise  (-s option)
This commit is contained in:
Rohit Jnagal 2015-04-06 08:58:20 -07:00
commit 6b51476791

View File

@ -44,9 +44,10 @@ find_files() {
\) -name '*.go'
}
bad_files=$(find_files | xargs gofmt -s -l)
GOFMT="gofmt -s"
bad_files=$(find_files | xargs $GOFMT -l)
if [[ -n "${bad_files}" ]]; then
echo "!!! gofmt needs to be run on the following files: "
echo "!!! '$GOFMT' needs to be run on the following files: "
echo "${bad_files}"
exit 1
fi