aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/errcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/errcheck.sh')
-rwxr-xr-xscripts/errcheck.sh4
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
4echo "==> Checking for unchecked errors..." 4echo "==> Checking for unchecked errors..."
5 5
6if ! which errcheck > /dev/null; then 6if ! 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
9fi 9fi
@@ -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
17if [[ -n ${err_files} ]]; then 17if [[ -n ${err_files} ]]; then
18 echo 'Unchecked errors found in the following places:' 18 echo 'Unchecked errors found in the following places:'