aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gofmtcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gofmtcheck.sh')
-rwxr-xr-xscripts/gofmtcheck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gofmtcheck.sh b/scripts/gofmtcheck.sh
index 1c05581..3856e52 100755
--- a/scripts/gofmtcheck.sh
+++ b/scripts/gofmtcheck.sh
@@ -2,7 +2,7 @@
2 2
3# Check gofmt 3# Check gofmt
4echo "==> Checking that code complies with gofmt requirements..." 4echo "==> Checking that code complies with gofmt requirements..."
5gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`) 5gofmt_files=$(gofmt -l "$(find . -name '*.go' | grep -v vendor)")
6if [[ -n ${gofmt_files} ]]; then 6if [[ -n ${gofmt_files} ]]; then
7 echo 'gofmt needs running on the following files:' 7 echo 'gofmt needs running on the following files:'
8 echo "${gofmt_files}" 8 echo "${gofmt_files}"