fix "unbound variable" issue

IGNORE is an empty array, it throws error when make verify-staticcheck
$ make verify-staticcheck
hack/verify-staticcheck.sh
hack/verify-staticcheck.sh: line 50: IGNORE[*]: unbound variable
make: *** [verify-staticcheck] Error 1

Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
This commit is contained in:
Ma Xinjian 2020-09-01 16:28:32 +08:00
parent dc852fbb73
commit 1bda78be78
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ export IFS=','; checks="${CHECKS[*]}"; unset IFS
# add it to the .staticcheck_failures blacklist
IGNORE=(
)
export IFS='|'; ignore_pattern="^(${IGNORE[*]})\$"; unset IFS
export IFS='|'; ignore_pattern="^(${IGNORE[*]-})\$"; unset IFS
# Ensure that we find the binaries we build before anything else.
export GOBIN="${KOPS_ROOT}/_output/bin"