Skip to content

Commit cda3bac

Browse files
Always set installCerts if the certificates exist
1 parent 0976e33 commit cda3bac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,12 @@ func loop() {
227227
if exist, err := installCertsKeyExists(configPath.String()); err != nil {
228228
log.Panicf("config.ini cannot be parsed: %s", err)
229229
} else if !exist {
230-
if cert.PromptInstallCertsSafari() {
230+
if config.CertsExist() {
231+
err = config.SetInstallCertsIni(configPath.String(), "true")
232+
if err != nil {
233+
log.Panicf("config.ini cannot be parsed: %s", err)
234+
}
235+
} else if cert.PromptInstallCertsSafari() {
231236
err = config.SetInstallCertsIni(configPath.String(), "true")
232237
if err != nil {
233238
log.Panicf("config.ini cannot be parsed: %s", err)

0 commit comments

Comments
 (0)