mirror of https://github.com/kubernetes/kops.git
Merge pull request #9851 from MaXinjian/shellcheck
fix "unbound variable" issue
This commit is contained in:
commit
cf0466bded
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue