File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ import (
26
26
"strconv"
27
27
"strings"
28
28
29
- cert "github.com/arduino/arduino-create-agent/certificates"
30
- "github.com/arduino/arduino-create-agent/config"
31
-
32
29
"github.com/arduino/arduino-create-agent/upload"
33
30
log "github.com/sirupsen/logrus"
34
31
)
@@ -183,9 +180,6 @@ func checkCmd(m []byte) {
183
180
go spList (false )
184
181
go spList (true )
185
182
} else if strings .HasPrefix (sl , "downloadtool" ) {
186
- // Always delete root certificates when we receive a downloadtool command
187
- // Useful if the install procedure was not followed strictly (eg. manually)
188
- cert .DeleteCertificates (config .GetCertificatesDir ())
189
183
go func () {
190
184
args := strings .Split (s , " " )
191
185
var tool , toolVersion , pack , behaviour string
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ func (s *Systray) start() {
101
101
err := cert .InstallCertificate (certDir .Join ("ca.cert.cer" ))
102
102
// if something goes wrong during the cert install we remove them, so the user is able to retry
103
103
if err != nil {
104
+ log .Errorf ("cannot install certificates something went wrong: %s" , err )
104
105
cert .DeleteCertificates (certDir )
105
106
}
106
107
s .Restart ()
You can’t perform that action at this time.
0 commit comments