Ignore glide cache in gofmt check

This commit is contained in:
Soam Vasani
2017-01-23 19:29:45 -08:00
parent 90e7f0212a
commit da15e5cdb7
+1 -1
View File
@@ -13,7 +13,7 @@ find_files() {
}
GOFMT="gofmt -s"
bad_files=$(find_files | xargs $GOFMT -l)
bad_files=$(find_files | grep -v '.glide/cache' | xargs $GOFMT -l)
if [[ -n "${bad_files}" ]]; then
echo "!!! '$GOFMT' needs to be run on the following files: "
echo "${bad_files}"