Commit 81ba4741 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #42901 from fabianofranz/issues_42697

Automatic merge from submit-queue (batch tested with PRs 41794, 42349, 42755, 42901, 42933) Fixes kubectl skew test failure when using kubectl.sh Fixes leftovers from https://github.com/kubernetes/kubernetes/pull/42737. **Release note**: ```release-note NONE ```
parents 8cb14a4f adea540a
......@@ -593,7 +593,7 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
// we need the actual kubectl binary, not the script wrapper
kubectlPathNormalizer := exec.Command("which", kubectlPath)
if strings.HasSuffix(kubectlPath, "kubectl.sh") {
kubectlPathNormalizer = exec.Command("sh", "-c", kubectlPath, "path")
kubectlPathNormalizer = exec.Command(kubectlPath, "path")
}
kubectlPathNormalized, err := kubectlPathNormalizer.Output()
framework.ExpectNoError(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment