File tree 1 file changed +12
-14
lines changed
1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -369,20 +369,18 @@ func loop() {
369
369
}
370
370
}
371
371
372
- // check if the HTTPS certificates are expired and prompt the user to update them on macOS
373
- if runtime .GOOS == "darwin" && cert .GetDefaultBrowserName () == "Safari" {
374
- if * installCerts {
375
- if config .CertsExist () {
376
- cert .PromptExpiredCerts (config .GetCertificatesDir ())
377
- } else if cert .PromptInstallCertsSafari () {
378
- // installing the certificates from scratch at this point should only happen if
379
- // something went wrong during previous installation attempts
380
- cert .GenerateAndInstallCertificates (config .GetCertificatesDir ())
381
- } else {
382
- err = config .SetInstallCertsIni (configPath .String (), "false" )
383
- if err != nil {
384
- log .Panicf ("config.ini cannot be parsed: %s" , err )
385
- }
372
+ // check if the HTTPS certificates are expired or expiring and prompt the user to update them on macOS
373
+ if runtime .GOOS == "darwin" && * installCerts {
374
+ if config .CertsExist () {
375
+ cert .PromptExpiredCerts (config .GetCertificatesDir ())
376
+ } else if cert .PromptInstallCertsSafari () {
377
+ // installing the certificates from scratch at this point should only happen if
378
+ // something went wrong during previous installation attempts
379
+ cert .GenerateAndInstallCertificates (config .GetCertificatesDir ())
380
+ } else {
381
+ err = config .SetInstallCertsIni (configPath .String (), "false" )
382
+ if err != nil {
383
+ log .Panicf ("config.ini cannot be parsed: %s" , err )
386
384
}
387
385
}
388
386
}
You can’t perform that action at this time.
0 commit comments