mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #78048 from cblecker/fix-bash-build
Don't use declare -g in build
This commit is contained in:
commit
a67f128f5e
@ -163,10 +163,10 @@ kube::golang::dedup() {
|
||||
# to readonly.
|
||||
# The configured vars will only contain platforms allowed by the
|
||||
# KUBE_SUPPORTED* vars at the top of this file.
|
||||
declare -a -g KUBE_SERVER_PLATFORMS
|
||||
declare -a -g KUBE_CLIENT_PLATFORMS
|
||||
declare -a -g KUBE_NODE_PLATFORMS
|
||||
declare -a -g KUBE_TEST_PLATFORMS
|
||||
declare -a KUBE_SERVER_PLATFORMS
|
||||
declare -a KUBE_CLIENT_PLATFORMS
|
||||
declare -a KUBE_NODE_PLATFORMS
|
||||
declare -a KUBE_TEST_PLATFORMS
|
||||
kube::golang::setup_platforms() {
|
||||
if [[ -n "${KUBE_BUILD_PLATFORMS:-}" ]]; then
|
||||
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
|
||||
|
Loading…
Reference in New Issue
Block a user