Skip to content

Commit 0833a9c

Browse files
committed
fix kube::golang::is_instrumented_package
1 parent 0949388 commit 0833a9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/lib/golang.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ kube::golang::outfile_for_binary() {
496496
# Returns 0 if the binary can be built with coverage, 1 otherwise.
497497
# NB: this ignores whether coverage is globally enabled or not.
498498
kube::golang::is_instrumented_package() {
499-
return "$(kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}")"
499+
kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}"
500+
return $?
500501
}
501502

502503
# Argument: the name of a Kubernetes package (e.g. k8s.io/kubernetes/cmd/kube-scheduler)

0 commit comments

Comments
 (0)