mirror of https://github.com/k3s-io/k3s
Merge pull request #75751 from BenTheElder/bash-fun
fix kube::golang::is_instrumented_packagek3s-v1.15.3
commit
f6c51d6e99
|
@ -496,7 +496,8 @@ kube::golang::outfile_for_binary() {
|
|||
# Returns 0 if the binary can be built with coverage, 1 otherwise.
|
||||
# NB: this ignores whether coverage is globally enabled or not.
|
||||
kube::golang::is_instrumented_package() {
|
||||
return "$(kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}")"
|
||||
kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}"
|
||||
return $?
|
||||
}
|
||||
|
||||
# Argument: the name of a Kubernetes package (e.g. k8s.io/kubernetes/cmd/kube-scheduler)
|
||||
|
|
Loading…
Reference in New Issue