diff options
author | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-07-05 14:02:37 +0200 |
---|---|---|
committer | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-07-05 14:02:37 +0200 |
commit | 065bf5d75bfd81d439ea42434463f796128d08f1 (patch) | |
tree | 975abfb432c663ba1faedb5b335b216fd0856f1a /scripts/gofmtcheck.sh | |
parent | 8806bd74ef1d8ca63af0b764e46990cbee8ce546 (diff) | |
download | terraform-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-x | scripts/gofmtcheck.sh | 2 |
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 |
4 | echo "==> Checking that code complies with gofmt requirements..." | 4 | echo "==> Checking that code complies with gofmt requirements..." |
5 | gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`) | 5 | gofmt_files=$(gofmt -l "$(find . -name '*.go' | grep -v vendor)") |
6 | if [[ -n ${gofmt_files} ]]; then | 6 | if [[ -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}" |