瀏覽代碼

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
Filippo Valsorda 5 年之前
父節點
當前提交
343aec289a
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      truststore_linux.go

+ 0 - 3
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 {