aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gofmtcheck.sh
diff options
context:
space:
mode:
authorAlexandre Garand <alexandre.garand@fretlink.com>2019-07-05 14:02:37 +0200
committerAlexandre Garand <alexandre.garand@fretlink.com>2019-07-05 14:02:37 +0200
commit065bf5d75bfd81d439ea42434463f796128d08f1 (patch)
tree975abfb432c663ba1faedb5b335b216fd0856f1a /scripts/gofmtcheck.sh
parent8806bd74ef1d8ca63af0b764e46990cbee8ce546 (diff)
downloadterraform-provider-mailgun-065bf5d75bfd81d439ea42434463f796128d08f1.tar.gz
terraform-provider-mailgun-065bf5d75bfd81d439ea42434463f796128d08f1.tar.zst
terraform-provider-mailgun-065bf5d75bfd81d439ea42434463f796128d08f1.zip
add shellcheck to the makeffile and .travis.yml and fix the scripts to have no error with it
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}"