On linux don't declare we installed to the system store (#18)

This commit is contained in:
Adam Shannon
2018-06-29 15:02:23 -05:00
committed by Filippo Valsorda
parent ce28959c70
commit 073ee25396
2 changed files with 9 additions and 3 deletions

View File

@@ -154,8 +154,13 @@ func (m *mkcert) install() {
var printed bool
if !m.checkPlatform() {
m.installPlatform()
m.ignoreCheckFailure = true // TODO: replace with a check for a successful install
log.Print("The local CA is now installed in the system trust store! ⚡️")
// TODO: replace with a check for a successful install, drop OS check
m.ignoreCheckFailure = true
if runtime.GOOS != "linux" {
log.Print("The local CA is now installed in the system trust store! ⚡️")
}
printed = true
}
if hasFirefox && !m.checkFirefox() {