Merge pull request #9851 from MaXinjian/shellcheck

fix "unbound variable" issue
This commit is contained in:
Kubernetes Prow Robot 2020-09-02 00:05:06 -07:00 committed by GitHub
commit cf0466bded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"
@ -165,4 +165,4 @@ if [[ ${#gone[@]} -gt 0 ]]; then
echo
} >&2
exit 1
fi
fi