Skip to content

Commit

Permalink
Print the URL, instead of return an error
Browse files Browse the repository at this point in the history
Let the terminal user open it themselves
  • Loading branch information
afbjorklund committed Mar 23, 2020
1 parent 0ce81ac commit 54bbdde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/minikube/browser/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ import (
"runtime"

"github.com/pkg/browser"
"k8s.io/minikube/pkg/minikube/out"
)

// OpenURL opens a new browser window pointing to URL.
func OpenURL(url string) error {
if runtime.GOOS == "linux" {
_, err := exec.LookPath("xdg-open")
if err != nil {
return err
out.T(out.URL, url)
return nil
}
}
return browser.OpenURL(url)
Expand Down

0 comments on commit 54bbdde

Please sign in to comment.