From 343aec289a131db121e8914a3b873ddf27766960 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Fri, 16 Aug 2019 18:20:09 -0400 Subject: [PATCH] truststore_linux: remove PATH check for SystemTrustCommand It's hard to predict what the PATH that sudo will use, and there shouldn't be many cases where we don't find the command anyway. Fixes #188 --- truststore_linux.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/truststore_linux.go b/truststore_linux.go index 65c2f1a..9410ccf 100644 --- a/truststore_linux.go +++ b/truststore_linux.go @@ -45,9 +45,6 @@ func init() { SystemTrustFilename = "/usr/share/pki/trust/anchors/%s.pem" SystemTrustCommand = []string{"update-ca-certificates"} } - if SystemTrustCommand != nil && !binaryExists(SystemTrustCommand[0]) { - SystemTrustCommand = nil - } } func (m *mkcert) systemTrustFilename() string {