Skip to content

Commit

Permalink
Merge pull request #1022 from aaron-prindle/kubectl-help-text
Browse files Browse the repository at this point in the history
Fixed kubectl download text/check for Windows
  • Loading branch information
aaron-prindle committed Jan 19, 2017
2 parents 5e5e2bd + c610dea commit 24f333c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/util/util.go
Expand Up @@ -177,11 +177,16 @@ func MaybePrintKubectlDownloadMsg() {
if runtime.GOOS == "windows" {
verb = "do"
installInstructions = `download kubectl from:
https://storage.googleapis.com/kubernetes-release/release/%s/bin/%s/%s/kubectl
https://storage.googleapis.com/kubernetes-release/release/%s/bin/%s/%s/kubectl.exe
Add kubectl to your system PATH`
}

_, err := exec.LookPath("kubectl")
var err error
if runtime.GOOS == "windows" {
_, err = exec.LookPath("kubectl.exe")
} else {
_, err = exec.LookPath("kubectl")
}
if err != nil {
fmt.Fprintf(os.Stderr,
`========================================
Expand Down

0 comments on commit 24f333c

Please sign in to comment.