diff options
Diffstat (limited to 'scripts/errcheck.sh')
-rwxr-xr-x | scripts/errcheck.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/errcheck.sh b/scripts/errcheck.sh index 15464f5..ebcc7b3 100755 --- a/scripts/errcheck.sh +++ b/scripts/errcheck.sh | |||
@@ -3,7 +3,7 @@ | |||
3 | # Check gofmt | 3 | # Check gofmt |
4 | echo "==> Checking for unchecked errors..." | 4 | echo "==> Checking for unchecked errors..." |
5 | 5 | ||
6 | if ! which errcheck > /dev/null; then | 6 | if ! command -v errcheck > /dev/null; then |
7 | echo "==> Installing errcheck..." | 7 | echo "==> Installing errcheck..." |
8 | go get -u github.com/kisielk/errcheck | 8 | go get -u github.com/kisielk/errcheck |
9 | fi | 9 | fi |
@@ -12,7 +12,7 @@ err_files=$(errcheck -ignoretests \ | |||
12 | -ignore 'github.com/hashicorp/terraform/helper/schema:Set' \ | 12 | -ignore 'github.com/hashicorp/terraform/helper/schema:Set' \ |
13 | -ignore 'bytes:.*' \ | 13 | -ignore 'bytes:.*' \ |
14 | -ignore 'io:Close|Write' \ | 14 | -ignore 'io:Close|Write' \ |
15 | $(go list ./...| grep -v /vendor/)) | 15 | "$(go list ./...| grep -v /vendor/)") |
16 | 16 | ||
17 | if [[ -n ${err_files} ]]; then | 17 | if [[ -n ${err_files} ]]; then |
18 | echo 'Unchecked errors found in the following places:' | 18 | echo 'Unchecked errors found in the following places:' |