]> git.immae.eu Git - github/fretlink/terraform-provider-mailgun.git/blobdiff - scripts/gofmtcheck.sh
add shellcheck to the makeffile and .travis.yml and fix the scripts to have no error...
[github/fretlink/terraform-provider-mailgun.git] / scripts / gofmtcheck.sh
index 1c055815f8db82af8d0f7893c448dafdd7b86cf8..3856e52ea0e32d4d8e5148cbdc04d0d7eb0b43c1 100755 (executable)
@@ -2,7 +2,7 @@
 
 # Check gofmt
 echo "==> Checking that code complies with gofmt requirements..."
-gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`)
+gofmt_files=$(gofmt -l "$(find . -name '*.go' | grep -v vendor)")
 if [[ -n ${gofmt_files} ]]; then
     echo 'gofmt needs running on the following files:'
     echo "${gofmt_files}"