mirror of https://github.com/kubernetes/kops.git
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:
parent
dc852fbb73
commit
1bda78be78
|
|
@ -47,7 +47,7 @@ export IFS=','; checks="${CHECKS[*]}"; unset IFS
|
||||||
# add it to the .staticcheck_failures blacklist
|
# add it to the .staticcheck_failures blacklist
|
||||||
IGNORE=(
|
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.
|
# Ensure that we find the binaries we build before anything else.
|
||||||
export GOBIN="${KOPS_ROOT}/_output/bin"
|
export GOBIN="${KOPS_ROOT}/_output/bin"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue