Skip to content

Commit

Permalink
Set installCerts when the certificate is installed from previous vers…
Browse files Browse the repository at this point in the history
…ions of the Agent regardless of the default browser
  • Loading branch information
MatteoPologruto committed May 8, 2024
1 parent f69980a commit f7bd6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func loop() {

// if the default browser is Safari, prompt the user to install HTTPS certificates
// and eventually install them
if runtime.GOOS == "darwin" && cert.GetDefaultBrowserName() == "Safari" {
if runtime.GOOS == "darwin" {
if exist, err := installCertsKeyExists(configPath.String()); err != nil {
log.Panicf("config.ini cannot be parsed: %s", err)
} else if !exist {
Expand All @@ -232,7 +232,7 @@ func loop() {
if err != nil {
log.Panicf("config.ini cannot be parsed: %s", err)
}
} else if cert.PromptInstallCertsSafari() {
} else if cert.GetDefaultBrowserName() == "Safari" && cert.PromptInstallCertsSafari() {
err = config.SetInstallCertsIni(configPath.String(), "true")
if err != nil {
log.Panicf("config.ini cannot be parsed: %s", err)
Expand Down

0 comments on commit f7bd6e3

Please sign in to comment.