소스 검색

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 {