From 065bf5d75bfd81d439ea42434463f796128d08f1 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Fri, 5 Jul 2019 14:02:37 +0200 Subject: add shellcheck to the makeffile and .travis.yml and fix the scripts to have no error with it --- scripts/errcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/errcheck.sh') 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 @@ # Check gofmt echo "==> Checking for unchecked errors..." -if ! which errcheck > /dev/null; then +if ! command -v errcheck > /dev/null; then echo "==> Installing errcheck..." go get -u github.com/kisielk/errcheck fi @@ -12,7 +12,7 @@ err_files=$(errcheck -ignoretests \ -ignore 'github.com/hashicorp/terraform/helper/schema:Set' \ -ignore 'bytes:.*' \ -ignore 'io:Close|Write' \ - $(go list ./...| grep -v /vendor/)) + "$(go list ./...| grep -v /vendor/)") if [[ -n ${err_files} ]]; then echo 'Unchecked errors found in the following places:' -- cgit v1.2.3