Added check for kubectl on Windows as well
parent
83f77bb466
commit
4e00a5a9f4
|
@ -186,11 +186,9 @@ https://storage.googleapis.com/kubernetes-release/release/%s/bin/%s/%s/kubectl.e
|
||||||
Add kubectl to your system PATH`
|
Add kubectl to your system PATH`
|
||||||
}
|
}
|
||||||
|
|
||||||
var err error
|
_, err := lookPath("kubectl")
|
||||||
if goos == "windows" {
|
if err != nil && goos == "windows" {
|
||||||
_, err = lookPath("kubectl.exe")
|
_, err = lookPath("kubectl.exe")
|
||||||
} else {
|
|
||||||
_, err = lookPath("kubectl")
|
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(out,
|
fmt.Fprintf(out,
|
||||||
|
|
Loading…
Reference in New Issue