Added check for kubectl on Windows as well

pull/1390/head
Aaron Prindle 2017-04-20 11:28:35 -07:00
parent 83f77bb466
commit 4e00a5a9f4
1 changed files with 2 additions and 4 deletions

View File

@ -186,11 +186,9 @@ https://storage.googleapis.com/kubernetes-release/release/%s/bin/%s/%s/kubectl.e
Add kubectl to your system PATH`
}
var err error
if goos == "windows" {
_, err := lookPath("kubectl")
if err != nil && goos == "windows" {
_, err = lookPath("kubectl.exe")
} else {
_, err = lookPath("kubectl")
}
if err != nil {
fmt.Fprintf(out,