Skip to content

Commit 8cecc9a

Browse files
authored
Merge pull request kubernetes#88993 from zhijianli88/remove-duplicate-targets
build/release-images.sh: remove possible duplicate targets
2 parents ef446db + e03385d commit 8cecc9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/release-images.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ if [[ "${KUBE_BUILD_CONFORMANCE}" =~ [yY] ]]; then
3131
fi
3232

3333
# TODO(dims): Remove this when we get rid of hyperkube image
34-
CMD_TARGETS="${CMD_TARGETS} cmd/kubelet cmd/kubectl"
34+
if [[ "${KUBE_BUILD_HYPERKUBE}" =~ [yY] ]]; then
35+
CMD_TARGETS=$(echo "${CMD_TARGETS} cmd/kubelet cmd/kubectl" | tr ' ' '\n' | sort | uniq | tr '\n' ' ')
36+
fi
3537

3638
kube::build::verify_prereqs
3739
kube::build::build_image

0 commit comments

Comments
 (0)