mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 08:27:36 +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)
|
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 {
|
if err := browser.OpenURL(url); err != nil {
|
||||||
fmt.Print(defaultPrintStatement)
|
fmt.Print(defaultPrintStatement)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user