You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oscmd:=exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nIf you use Safari, you need to install it.\" buttons {\"Do not install\", \"Install the certificate for Safari\"} default button 1 with title \"Install Certificates\"")
290
-
pressed, _:=oscmd.Output()
291
-
returnstring(pressed)=="button returned:Install the certificate for Safari"
288
+
//oscmd := exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nIf you use Safari, you need to install it.\" buttons {\"Do not install\", \"Install the certificate for Safari\"} default button 1 with title \"Install Certificates\"")
289
+
//pressed, _ := oscmd.Output()
290
+
return""=="button returned:Install the certificate for Safari"
292
291
}
293
292
294
293
// PromptExpiredCerts prompts the user to update the HTTPS certificates if they are using Safari
295
294
funcPromptExpiredCerts(certDir*paths.Path) {
296
295
ifexpired, err:=IsExpired(); err!=nil {
297
296
log.Errorf("cannot check if certificates are expired something went wrong: %s", err)
298
297
} elseifexpired {
299
-
oscmd:=exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nYour certificate is expired or close to expiration. Do you want to update it?\" buttons {\"Do not update\", \"Update the certificate for Safari\"} default button 1 with title \"Update Certificates\"")
300
-
ifpressed, _:=oscmd.Output(); string(pressed)=="button returned:Update the certificate for Safari" {
298
+
//oscmd := exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nYour certificate is expired or close to expiration. Do you want to update it?\" buttons {\"Do not update\", \"Update the certificate for Safari\"} default button 1 with title \"Update Certificates\"")
299
+
if""=="button returned:Update the certificate for Safari" {
301
300
err:=UninstallCertificates()
302
301
iferr!=nil {
303
302
log.Errorf("cannot uninstall certificates something went wrong: %s", err)
0 commit comments