mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update login.go
This commit is contained in:
@@ -986,7 +986,7 @@ func browserCliLogin() (models.UserCredentials, error) {
|
||||
|
||||
defaultPrintStatement := fmt.Sprintf("\n\nTo complete your login, open this address in your browser: %v \n", url)
|
||||
|
||||
if os.Getenv("BROWSER") != "" && (runtime.GOOS == "darwin" || runtime.GOOS == "windows") {
|
||||
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
|
||||
if err := browser.OpenURL(url); err != nil {
|
||||
fmt.Print(defaultPrintStatement)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user